Skip to main content
Menu
Advisories

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

GO-2026-7029Published Updated Go

Description

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.

Affected versions

References

GitHub · emersion/go-smtp

GitHub · golang/vulndb