GO-2026-7029

Source
https://pkg.go.dev/vuln/GO-2026-7029
Import Source
https://vuln.go.dev/ID/GO-2026-7029.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-7029
Published
2026-11-23T20:05:08Z
Modified
2026-11-23T20:30:17Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-7029"
}
References
Credits
    • Qiyi Deng, Wuhan University
    • Min Shi, Wuhan University
    • Yongkang Xiao, Wuhan University
    • Jing Chen, Wuhan University

Affected packages

Go / github.com/emersion/go-smtp

Package

Name
github.com/emersion/go-smtp
View open source insights on deps.dev
Purl
pkg:golang/github.com/emersion/go-smtp

Affected 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"