Vulnerability · Published Feb 27, 2024 · Assigned by apache

CVE-2024-21742Apache James Mime4J: Mime4J DOM header injection

Medium 5.3

In plain English

A medium-severity injection in Apache James Mime4J from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.1%top 34.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12apache-mime4jno fix listedDEBIAN-CVE-2024-21742
Debian:13apache-mime4j0.8.10-1DEBIAN-CVE-2024-21742
Debian:14apache-mime4j0.8.10-1DEBIAN-CVE-2024-21742
Mavenorg.apache.james:apache-mime4j-core0.8.10GHSA-jw7r-rxff-gv24
Ubuntu:22.04:LTSapache-mime4jno fix listedUBUNTU-CVE-2024-21742
Ubuntu:24.04:LTSapache-mime4jno fix listedUBUNTU-CVE-2024-21742
Ubuntu:25.10apache-mime4jno fix listedUBUNTU-CVE-2024-21742
Ubuntu:26.04:LTSapache-mime4jno fix listedUBUNTU-CVE-2024-21742
Ubuntu:26.10apache-mime4jno fix listedUBUNTU-CVE-2024-21742

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache James Mime4J 0 – through 0.8.9

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References