{"id":"GO-2026-7029","aliases":["GO-2026-7029"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded memory allocation during BDAT transaction in github.com/emersion/go-smtp","summary":"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.","summaryFormat":"markdown","summarySource":"go","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"go"}],"published":"2026-11-23T20:05:08.000Z","modified":"2026-11-23T20:30:17.033Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.15.0","status":"affected","fixed":"0.25.1"}],"ecosystem":"Go","package":"github.com/emersion/go-smtp","purl":"pkg:golang/github.com/emersion/go-smtp","source":"go"}],"references":[{"url":"https://github.com/emersion/go-smtp/commit/eb903bcc09670a2b04a7b5f210c29c465289df1a","tags":["fix"],"sources":["go"]},{"url":"https://github.com/golang/vulndb/issues/7029","tags":["report"],"sources":["go"]},{"url":"https://github.com/emersion/go-smtp/releases/tag/v0.25.1","tags":["web"],"sources":["go"]}],"credits":["Qiyi Deng, Wuhan University","Min Shi, Wuhan University","Yongkang Xiao, Wuhan University","Jing Chen, Wuhan University"],"sources":[{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-7029","url":"https://pkg.go.dev/vuln/GO-2026-7029","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:17.033Z"}],"updatedAt":"2026-11-25T22:56:25.637Z"}