cvelo
P4 · Info

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

  • GO-2026-7029

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.

Text from the OSV record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • github.com/emersion/go-smtpGo

    Affected versionsFixed in
    from 0.15.0 to before 0.25.10.25.1

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.