mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
aef99a72d8
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. |
||
---|---|---|
.. | ||
client.go | ||
cmds.go | ||
parse.go | ||
protocol.go |