CVE-2025-59937CWE-88

CVE-2025-59937

Critical · published September 30, 2025

CVSS v3.1
9.1
EPSS
1%
Percentile
44.7
In the wild
Unconfirmed
What it is

⚡ A poorly handled email address could send your messages on a wild detour! In go-mail versions 0.7.0 and below, certain inputs might lead to wrong address routing or even sneaky parameter smuggling. 🔥 Think of it like a restaurant that takes orders without verifying the table number — it might accidentally serve your meal to the wrong diner. With go-mail, if your code allows arbitrary email addresses, that could spell chaos! An attacker could manipulate email routing, causing sensitive information to fall into unintended mailboxes or getting the opportunity to smuggle malicious SMTP commands. The consequences could be absolutely devastating, especially in environments where email security is paramount!

Put simply

Think of it like a restaurant that takes orders without verifying the table number — it might accidentally serve your meal to the wrong diner. With go-mail, if your code allows arbitrary email addresses, that could spell chaos! The vulnerability in go-mail arises from incorrect handling of mail.Address values in the SMTP commands, allowing for potential exploitation if arbitrary input is accepted, such as through web forms.

What to do

An attacker could manipulate email routing, causing sensitive information to fall into unintended mailboxes or getting the opportunity to smuggle malicious SMTP commands. The consequences could be absolutely devastating, especially in environments where email security is paramount! Update go-mail to version 0.7.1 immediately to patch this vulnerability. If your application allows users to input email addresses, ensure that you implement validation checks to prevent arbitrary misuse. 🛡️ You've got this! By following these steps, you'll be on your way to securing your email functionalities in no time! 💪😊

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00542 · 44.7th percentile
Weakness
CWE-88 · Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Published
2025-09-30T03:15Z
Affected products (1)
ProductVersionsFixed in
pebcak/go-mail< 0.7.10.7.1
References (5)
EPSS history
Timeline
  • 29 SEP 22:21Z
    go-mail has insufficient address encoding when passing mail addresses to the SMTP client
    cvelistv5