CVE-2025-7962 Jakarta Mail vulnerable to SMTP Injection
Attackers can inject SMTP commands via CRLF characters in Jakarta Mail, potentially altering message delivery or content.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-7962?
CVE-2025-7962 is a medium-severity vulnerability in Eclipse Foundation Jakarta Mail, published on 21 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In Jakarta Mail versions prior to 2.0.2 it is possible to perform an SMTP Injection by utilizing the \r and \n UTF-8 characters to separate different messages.
Weakness: CWE-147
Which versions are affected by CVE-2025-7962?
6 open source packages ship an affected version, including com.sun.mail:jakarta.mail and org.eclipse.angus:smtp. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
com.sun.mail:jakarta.mail Maven | All versions | 1.6.8 |
com.sun.mail:jakarta.mail Maven | All versions | 1.6.8 |
com.sun.mail:jakarta.mail Maven | From 2.0.0 | 2.0.2 |
com.sun.mail:jakarta.mail Maven | From 2.0.0 | 2.0.2 |
org.eclipse.angus:smtp Maven | All versions | 2.0.4 |
org.eclipse.angus:smtp Maven | All versions | 2.0.4 |
Linux distribution packages (5)
javamail SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 1.6.2-150200.3.7.1 |
javamail SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 1.6.2-150200.3.7.1 |
javamail openSUSE:Leap 15.6 | All versions | 1.6.2-150200.3.7.1 |
ant openSUSE:Tumbleweed | All versions | 1.10.18-1.1 |
javamail openSUSE:Tumbleweed | All versions | 1.6.2-3.1 |
Products include Eclipse Angus Mail, Eclipse Jakarta Mail.
How do I fix CVE-2025-7962?
Upgrade com.sun.mail:jakarta.mail to a fixed version for your release line: 1.6.8 or 2.0.2.
Is CVE-2025-7962 being exploited?
There is no known exploitation of CVE-2025-7962 in the wild and no public exploit code.
Sources
Also known as CLEANSTART-2026-GU43525, CLEANSTART-2026-LI24140, CLEANSTART-2026-LT00301, CLEANSTART-2026-OE66556, CLEANSTART-2026-PU24283, CLEANSTART-2026-VN01735 and 35 more.