CVE-2024-21742
MEDIUM 5.3CVSS 3.1Apache James MIME4J improper input validation vulnerability
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
- 27 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-74
- Also known as
- GHSA-jw7r-rxff-gv24
- Sources
- NVDJSONOSV GHSA-jw7r-rxff-gv24JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | james_mime4jcpe:2.3:a:apache:james_mime4j:*:*:*:*:*:*:*:* |
<= 0.8.9 | |
| OSV | Maven | org.apache.james:apache-mime4j-core | < 0.8.10 | 0.8.10 |
References
- https://lists.apache.org/thread/nrqzg93219wdj056pqfszsd33dc54kfy · Mailing List, Vendor Advisory, WEB
- http://www.openwall.com/lists/oss-security/2024/02/27/5 · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21742 · ADVISORY
- https://github.com/apache/james-mime4j/commit/9dec5df2a588fed8027839815daefa79ee66efd1 · WEB
- https://github.com/apache/james-mime4j/commit/d25fb3fd35db42b060789a20634fbe3cb84aba17 · WEB
- https://github.com/apache/james-mime4j · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 27 Feb 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 27 Feb 2024)