GO-2026-7029

published 23 Nov 2026 · updated 23 Nov 2026

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

5.0Medium

No exploitation in the wild has been reported. Fixed in github.com/emersion/go-smtp 0.25.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
go: github.com/emersion/go-smtp>=0.15.0 <0.25.10.25.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

GO-2026-7029 severity on Zeptric[![GO-2026-7029](https://zeptric.io/badge/cve/GO-2026-7029.svg)](https://zeptric.io/cve/GO-2026-7029)