Open-source package vulnerability · Maven
CVE-2024-21742: Apache James MIME4J improper input validation vulnerability
mediumCVSS 3.1 5.3GHSA-jw7r-rxff-gv24
Improper input validation allows for header injection in MIME4J library when using MIME4J DOM for composing message. This can be exploited by an attacker to add unintended headers to MIME messages.
Published Feb 27, 2024 · Updated Mar 15, 2026
Affected packages
org.apache.james:apache-mime4j-core
- Ecosystem
- Maven
- Affected
- < 0.8.10
- Fixed in
- 0.8.10
- Check
mvn dependency:tree -Dincludes=org.apache.james:apache-mime4j-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Improper input validation allows for header injection in MIME4J library when using MIME4J DOM for composing message. This can be exploited by an attacker to add unintended headers to MIME messages.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21742
- https://lists.apache.org/thread/nrqzg93219wdj056pqfszsd33dc54kfy
- https://github.com/apache/james-mime4j/commit/9dec5df2a588fed8027839815daefa79ee66efd1
- https://github.com/apache/james-mime4j/commit/d25fb3fd35db42b060789a20634fbe3cb84aba17
- https://github.com/advisories/GHSA-jw7r-rxff-gv24
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
