go-mail has insufficient address encoding when passing mail addresses to the SMTP client
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
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/wneessen/go-mailGo | < 0.7.1 | 0.7.1 |
Affected products
11- osv-coords10 versionspkg:apk/chainguard/giteapkg:apk/chainguard/gitea-compatpkg:apk/chainguard/gitea-fipspkg:apk/chainguard/gitea-fips-compatpkg:apk/chainguard/sftpgopkg:apk/wolfi/giteapkg:apk/wolfi/gitea-compatpkg:apk/wolfi/sftpgopkg:golang/github.com/wneessen/go-mailpkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed
< 1.24.6-r1+ 9 more
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 2.6.6-r9
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 1.24.6-r1
- (no CPE)range: < 2.6.6-r9
- (no CPE)range: < 0.7.1
- (no CPE)range: < 0.0.20251105T184115-1.1
- wneessen/go-mailv5Range: < 0.7.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-wpwj-69cm-q9c5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-59937ghsaADVISORY
- github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479ghsax_refsource_MISCWEB
- github.com/wneessen/go-mail/issues/495ghsax_refsource_MISCWEB
- github.com/wneessen/go-mail/pull/496ghsax_refsource_MISCWEB
- github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5ghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2025-3988ghsaWEB
News mentions
0No linked articles in our index yet.