CVE-2025-7962 Jakarta Mail vulnerable to SMTP Injection

Medium 6.0 Published Updated

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.

PackageAffectedFixed in
com.sun.mail:jakarta.mail MavenAll versions1.6.8
com.sun.mail:jakarta.mail MavenAll versions1.6.8
com.sun.mail:jakarta.mail MavenFrom 2.0.02.0.2
com.sun.mail:jakarta.mail MavenFrom 2.0.02.0.2
org.eclipse.angus:smtp MavenAll versions2.0.4
org.eclipse.angus:smtp MavenAll versions2.0.4
Linux distribution packages (5)
javamail SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions1.6.2-150200.3.7.1
javamail SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions1.6.2-150200.3.7.1
javamail openSUSE:Leap 15.6All versions1.6.2-150200.3.7.1
ant openSUSE:TumbleweedAll versions1.10.18-1.1
javamail openSUSE:TumbleweedAll versions1.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.

Is CVE-2025-7962 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free