CVE-2024-21742 Apache James Mime4J: Mime4J DOM header injection
Attackers can inject unintended headers into MIME messages via improper input validation in the Apache James Mime4J library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-21742?
CVE-2024-21742 is a medium-severity vulnerability in Apache James Mime4J, published on 27 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-74
Which versions are affected by CVE-2024-21742?
2 open source packages ship an affected version, including org.apache.james:apache-mime4j-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.james:apache-mime4j-core Maven | All versions | 0.8.10 |
org.apache.james:apache-mime4j-core Maven | All versions | 0.8.10 |
Products include Apache James Mime4j.
How do I fix CVE-2024-21742?
Upgrade org.apache.james:apache-mime4j-core to 0.8.10 or later.
Is CVE-2024-21742 being exploited?
There is no known exploitation of CVE-2024-21742 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2024-21742, GHSA-jw7r-rxff-gv24, OESA-2024-1333, OESA-2024-1475, OESA-2024-1476, OESA-2024-1477 and 5 more.