GitHub Advisoryadvisory · Maven
GHSA-9342-92gg-6v29 Jakarta Mail vulnerable to SMTP Injection
MEDIUM
Official page ↗
- Aliases
- CVE-2025-7962
- Ecosystem
- Maven
- Packages
- org.eclipse.angus:smtp, com.sun.mail:jakarta.mail
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-147
- Reviewed
- 2025-08-06
Affected packages
• Maven org.eclipse.angus:smtp: < 2.0.4 → fixed in 2.0.4
• Maven com.sun.mail:jakarta.mail: < 1.6.8 → fixed in 1.6.8
• Maven com.sun.mail:jakarta.mail: >= 2.0.0, < 2.0.2 → fixed in 2.0.2
Description
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.
Related
Alias · CVE (1)
- CVE-2025-7962 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… vulnerability
Weakness · CWE (1)
- CWE-147 Improper Neutralization of Input Terminators weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-7962 advisory
- https://github.com/jakartaee/mail-api/issues/765 web
- https://github.com/jakartaee/mail-api/pull/760 web
- https://github.com/eclipse-ee4j/angus-mail/commit/269099b652a0a5c2fa140f1296a18f0fbbea0d44 web
- https://github.com/eclipse-ee4j/angus-mail package
- https://gitlab.eclipse.org/security/cve-assignement/-/issues/67 web
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290 web
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/290#note_5320539 web
- http://www.openwall.com/lists/oss-security/2025/09/03/4 web