{"id":"CVE-2025-59937","published":"2025-09-29T22:21:02Z","modified":"2025-09-30T14:44:35Z","title":"go-mail has insufficient address encoding when passing mail addresses to the SMTP client","vendor":"wneessen","product":"go-mail","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00542,"percentile":0.46448,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/wneessen/go-mail/issues/495","tags":["x_refsource_MISC"]},{"url":"https://github.com/wneessen/go-mail/pull/496","tags":["x_refsource_MISC"]},{"url":"https://github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.29},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"wneessen","affectedVersions":[{"vendor":"wneessen","product":"go-mail","versions":["< 0.7.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-30T14:43:56.630417Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/wneessen/go-mail","vulnerableRanges":["<0.7.1"],"patched":["0.7.1"],"from":["GHSA-wpwj-69cm-q9c5","GO-2025-3988"],"provenance":"source"}],"summary":{"text":"The go-mail Go library for sending mail contains insufficient address encoding when mail.Address values are passed to the SMTP client's MAIL FROM and RCPT TO commands, affecting versions 0.7.0 and below. An unauthenticated remote attacker can cause wrong address routing or ESMTP parameter smuggling, but only where the application accepts arbitrary mail address input from users (for example through a web form) and the addresses use quoted local parts; applications using only static, unquoted addresses are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:57Z"},"euvd":{"id":"EUVD-2025-31582","exploited":false,"provenance":"source"}}