{"id":"GO-2026-7029","summary":"Unbounded memory allocation during BDAT transaction in github.com/emersion/go-smtp","details":"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.","modified":"2026-11-23T20:30:17.056738107Z","published":"2026-11-23T20:05:08Z","database_specific":{"url":"https://pkg.go.dev/vuln/GO-2026-7029","review_status":"REVIEWED"},"references":[{"type":"FIX","url":"https://github.com/emersion/go-smtp/commit/eb903bcc09670a2b04a7b5f210c29c465289df1a"},{"type":"REPORT","url":"https://github.com/golang/vulndb/issues/7029"},{"type":"WEB","url":"https://github.com/emersion/go-smtp/releases/tag/v0.25.1"}],"affected":[{"package":{"name":"github.com/emersion/go-smtp","ecosystem":"Go","purl":"pkg:golang/github.com/emersion/go-smtp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.15.0"},{"fixed":"0.25.1"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/emersion/go-smtp","symbols":["Conn.handleBdat","Server.ListenAndServe","Server.ListenAndServeTLS","Server.Serve"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-7029.json"}}],"schema_version":"1.9.2","credits":[{"name":"Qiyi Deng, Wuhan University"},{"name":"Min Shi, Wuhan University"},{"name":"Yongkang Xiao, Wuhan University"},{"name":"Jing Chen, Wuhan University"}]}