P4 · Info
Unbounded memory allocation during BDAT transaction in github.com/emersion/go-smtp
- GO-2026-7029
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.
Text from the OSV record.
Recommendation
github.com/emersion/go-smtp
- If you run a version from 0.15.0 to before 0.25.1update to 0.25.1 or laterMajor version change: expect breaking changesgithub.com/emersion/go-smtp 0.25.1 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
github.com/emersion/go-smtpGo
Affected versions Fixed in from 0.15.0 to before 0.25.1 0.25.1
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.