CVE-2025-59937: pebcak go-mail Argument Injection
Vulnerability summary
CVE-2025-59937 is a critical (CVSS 9.1) Argument Injection vulnerability in pebcak go-mail. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 44.6% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 5Timeline
- 29-09-2025PublishedVulnerability first disclosed.
- 30-09-2025Last modifiedVulnerability information updated.
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
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
0.00 pp
From 0.54% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGo Mail
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard5 products
- gitea< 1.24.6-r1
- gitea-compat< 1.24.6-r1
- gitea-fips< 1.24.6-r1
- gitea-fips-compat< 1.24.6-r1
- sftpgo< 2.6.6-r9
Wolfi3 products
- gitea< 1.24.6-r1
- gitea-compat< 1.24.6-r1
- sftpgo< 2.6.6-r9
Github.com/wneessen1 product
- go-mail< 0.7.1
Pebcak1 product
- go-mail< 0.7.1
Wneessen1 product
- go-mail< 0.7.1
5 vendors · 11 products
References
8 links- github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5X Refsource CONFIRMAdvisoryWEBVendor Advisory
- github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479X Refsource MISCFIXWEBPatch
- github.com/wneessen/go-mailPACKAGE