# GO-2026-7029: Unbounded memory allocation during BDAT transaction in github.com/emersion/go-smtp

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-23T20:05:08.000Z
- Modified: 2026-11-23T20:30:17.033Z

## 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.

(As written by Go Vulnerability Database.)

## Affected

- github.com/emersion/go-smtp (Go): from 0.15.0 before 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)

## Sources

- Go Vulnerability Database: [GO-2026-7029](https://pkg.go.dev/vuln/GO-2026-7029), CC-BY-4.0, modified 2026-11-23

---

Page: https://cve.day/GO-2026-7029 · Whole record: https://cve.day/GO-2026-7029.json · Rebuilt by cve.day 2026-11-25T22:56:25.637Z
