mox/imapclient
Mechiel Lukkien aef99a72d8
imapserver: prevent unbounded memory allocations when handling a command
some commands, like search, can specify any number of literals, of arbitrary
size.  we already limited individual literals to 100kb. but you could specify
many of them, causing unbounded memory consumption. this change adds a limit of
1000 literals in a command, and a limit of 1mb of total combined memory for
literals. once the limits are exceeded, a TOOBIG error code is returned.

unbounded memory use could only be triggered on authenticated connections.

this addresses the same issue as CVE-2024-34055 for cyrus-imap, by damian
poddebniak.
2024-06-10 15:00:18 +02:00
..
client.go imapserver: prevent unbounded memory allocations when handling a command 2024-06-10 15:00:18 +02:00
cmds.go fix the Status command on imapclient.Conn 2024-03-11 15:22:41 +01:00
parse.go fix the Status command on imapclient.Conn 2024-03-11 15:22:41 +01:00
protocol.go fix the Status command on imapclient.Conn 2024-03-11 15:22:41 +01:00