CVE Catalog

CVE-2025-59937

CriticalCVSS 9.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.54%

44th percentile - higher than 44% of all known CVEs

Summary

go-mail versions 0.7.0 and below incorrectly handle mail.Address values when a sender or recipient address is passed to the MAIL FROM or RCPT TO commands of the SMTP client. This may lead to wrong address routing or even ESMTP parameter smuggling. Exploitation requires that the user's code allows arbitrary mail address input, e.g. through a web form.

Risk Assessment

If an application accepts e-mail addresses from users, an attacker could force misrouting of messages or inject additional ESMTP parameters, potentially sending mail to unintended recipients. Organizations using only static addresses without quoted local parts are not affected.

Recommendation

Update the go-mail library to version 0.7.1 or later. If updating is not possible, avoid passing user-supplied e-mail addresses directly to the SMTP client.

Related vulnerabilities

Original NVD description (English source)

go-mail is a comprehensive library for sending mails with Go. In versions 0.7.0 and below, due to incorrect handling of the mail.Address values when a sender- or recipient address is passed to the corresponding MAIL FROM or RCPT TO commands of the SMTP client, there is a possibility of wrong address routing or even ESMTP parameter smuggling. For successful exploitation, it is required that the user's code allows for arbitrary mail address input (i. e. through a web form or similar). If only static mail addresses are used (i. e. in a config file) and the mail addresses in use do not consist of quoted local parts, this should not affect users. This issue is fixed in version 0.7.1

Vulnerability data from NVD (NIST) · CISA KEV · EPSS