Vulnerabilities / CVE-2025-59937

critical

CVE-2025-59937

go-mail has insufficient address encoding when passing mail addresses to the SMTP client

Published Modified CWE 88
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
chainguardgitea, gitea-fips, sftpgo1.24.6-r1 and 1 more
go::GitHub Security Advisory Gogithub.com/wneessen/go-mail0.7.1
wolfigitea, sftpgo1.24.6-r1 and 1 more
Show all 6 entries from 3 sources
SourcePackageFixed in
chainguardgitea1.24.6-r1
chainguardgitea-fips1.24.6-r1
chainguardsftpgo2.6.6-r9
go::GitHub Security Advisory Gogithub.com/wneessen/go-mail0.7.1
wolfigitea1.24.6-r1
wolfisftpgo2.6.6-r9

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.