Skip to main content
VulnerabilityPublished Updated

CVE-2024-21742: Apache mime4j · Improper input validation allows for header injection in MIME4J library when using

Affects apache-mime4jSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.3 Medium.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.0% chance of exploitation in 30 days – higher than 66% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10apache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=stonkingOther threatsAffected
  • =0.8.13-1
Fixed in–
Ubuntu 26.04 LTSapache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=resoluteOther threatsAffected
  • =0.8.12-1
  • =0.8.13-1
Fixed in–
Ubuntu 25.10apache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=questingOther threatsAffected
  • =0.8.12-1
Fixed in–
Ubuntu 24.04 LTSapache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=nobleOther threatsAffected
  • =0.8.2-1
  • =0.8.10-1
Fixed in–
Ubuntu 22.04 LTSapache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=jammyOther threatsAffected
  • =0.8.2-1
Fixed in–
Ubuntu 20.04 LTSapache-mime4jpkg:deb/ubuntu/apache-mime4j?arch=source&distro=focalOther threatsAffected
  • =0.8.2-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…