CVEfocus › CVE database › CVE-2024-21742

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

CVSS 5.3 MediumEPSS 1.5% (higher than 74% of CVEs)Published 2024-02-27Updated 2025-05-06Assigner: apache

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.

CWE-74

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
2Fix pending
3Under investigation
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10apache-mime4jFix pendingUBUNTU-CVE-2024-21742
Ubuntu 26.04apache-mime4jUnder investigationUBUNTU-CVE-2024-21742
Ubuntu 25.10apache-mime4jWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-21742
Ubuntu 24.04apache-mime4jUnder investigationUBUNTU-CVE-2024-21742
Ubuntu 22.04apache-mime4jUnder investigationUBUNTU-CVE-2024-21742
Ubuntu 20.04apache-mime4jWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-21742
Ubuntu 18.04apache-mime4jWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-21742
Ubuntu 16.04apache-mime4jWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-21742
Ubuntu 14.04apache-mime4jWill not fix
Ubuntu decided not to fix this in this release
Debian 14apache-mime4jFixed0.8.10-1DEBIAN-CVE-2024-21742
Debian 13apache-mime4jFixed0.8.10-1DEBIAN-CVE-2024-21742
Debian 12apache-mime4jFix pendingDEBIAN-CVE-2024-21742
Maven libraryorg.apache.james:apache-mime4j-coreFixed0.8.10GHSA-jw7r-rxff-gv24

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.