GHSA-9342-92gg-6v29

Jakarta Mail vulnerable to SMTP Injection

At a glance

Published
Updated
CVE
CVE-2025-7962
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N

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.

Affected packages

PackageVersions
Maven · org.eclipse.angus:smtpintroduced 0, fixed 2.0.4
Maven · com.sun.mail:jakarta.mailintroduced 0, fixed 1.6.8
Maven · com.sun.mail:jakarta.mailintroduced 2.0.0, fixed 2.0.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database