CVE-2025-7962: Medium severity Jakarta Mail vulnerability

Published Jul 21, 2025
·
Updated

In Jakarta Mail 2.2 it is possible to preform a SMTP Injection by utilizing the \r and \n UTF-8 characters to separate different messages.

Other sources

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.

— Ubuntu

Affected Software

15 affected componentsFixes available
Jakarta Mail
Eclipse Jakarta Mail<1.6.8
Eclipse Jakarta Mail>=2.0.0<2.0.2
Eclipse Angus Mail<2.0.4
IBM API Connect V12 OnPrem<=All
ubuntu/jakarta-mail*
ubuntu/jakarta-mail*
ubuntu/jakarta-mail*
ubuntu/jakarta-mail*
ubuntu/jakarta-mail*
debian/jakarta-mail<=2.0.0-2
debian/javamail<=1.6.5-2, <=1.6.5-3
maven/com.sun.mail:jakarta.mail>=2.0.0<2.0.2
2.0.2
maven/com.sun.mail:jakarta.mail<1.6.8
1.6.8
maven/org.eclipse.angus:smtp<2.0.4
2.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/com.sun.mail:jakarta.mail to a version that resolves this vulnerability.

    Fixed in 2.0.2
  2. Upgrade

    Upgrade maven/com.sun.mail:jakarta.mail to a version that resolves this vulnerability.

    Fixed in 1.6.8
  3. Upgrade

    Upgrade maven/org.eclipse.angus:smtp to a version that resolves this vulnerability.

    Fixed in 2.0.4

Event History

Jul 21, 2025
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·05:22 PM
Data Sourced
via MITRE·05:22 PM
DescriptionWeakness
Data Sourced
via OSV·05:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:32 PM
Data Sourced
via GitHub·06:32 PM
DescriptionSeverityWeaknessAffected Software
Jul 24, 2025
Updated
via MITRE·10:18 AM
Description
Updated
via NVD·11:15 AM
Description
Aug 6, 2025
Data Sourced
via NVD·02:49 PM
Affected Software
Updated
via NVD·02:49 PM
Severity
Aug 22, 2025
Event
via FIRST·12:00 AM
Nov 13, 2025
Updated
via NVD·06:36 PM
Affected Software
Event
via NVD·06:36 PM
Dec 22, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Apr 1, 2026
Updated
via IBM·12:00 AM
Affected Software
Apr 27, 2026
Updated
via IBM·12:00 AM
Affected Software
May 14, 2026
Updated
via IBM·12:00 AM
Affected Software
Jun 23, 2026
Updated
via MITRE·10:26 AM
Description
Updated
via NVD·12:16 PM
Description
Jul 7, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software
Oct 28, 2026
Data Sourced
via OSV·08:16 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-7962?

CVE-2025-7962 has a critical severity rating due to its potential for SMTP Injection attacks.

2

How do I fix CVE-2025-7962?

To mitigate CVE-2025-7962, ensure you validate and sanitize all user inputs for the presence of \r and \n characters before processing SMTP commands.

3

Which versions of Jakarta Mail are affected by CVE-2025-7962?

CVE-2025-7962 affects Jakarta Mail version 2.2 and potentially earlier versions.

4

What are the potential impacts of exploiting CVE-2025-7962?

Exploiting CVE-2025-7962 could allow an attacker to manipulate email messages sent via vulnerable Jakarta Mail systems.

5

Is there a patch available for CVE-2025-7962?

As of now, there is no official patch released for CVE-2025-7962, and users are advised to implement workarounds until a fix is provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203