Security mailing lists by PureSourceCode

GO-2026-7029

not scored yet

Unbounded memory allocation during BDAT transaction in github.com/emersion/go-smtp

Conn.handleBdat disables the line length limit on the connection reader while reading a BDAT chunk and only restored it on error or on the final BDAT LAST chunk. A remote client that sends another command between two BDAT commands in a transaction bypasses Server.MaxLineLength, allowing unbounded memory allocation and denial of service.

Published
23 Nov 2026
Last modified
23 Nov 2026
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/emersion/go-smtp >= 0.15.0, < 0.25.1 0.25.1

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.