GO-2026-7029
not scored yetUnbounded 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.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/emersion/go-smtp | >= 0.15.0, < 0.25.1 | 0.25.1 |
References
- https://github.com/emersion/go-smtp/commit/eb903bcc09670a2b04a7b5f210c29c465289df1a · FIX
- https://github.com/golang/vulndb/issues/7029 · REPORT
- https://github.com/emersion/go-smtp/releases/tag/v0.25.1 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2026)