PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-21742: 
Java vulnerability analysis and mitigation

Overview

CVE-2024-21742 affects the Apache James MIME4J library through version 0.8.9. The vulnerability was discovered by Benoit TELLIER and publicly disclosed on February 27, 2024. The issue exists in the MIME4J DOM component used for composing messages, where improper input validation could lead to header injection vulnerabilities (OpenWall).

Technical details

The vulnerability is classified as an Improper Input Validation (CWE-20) and Improper Neutralization of Special Elements in Output Used by a Downstream Component (CWE-74). The National Vulnerability Database has assigned it a CVSS v3.1 base score of 5.3 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

Impact

When exploited, this vulnerability allows an attacker to add unintended headers to MIME messages, potentially affecting the integrity of message composition in applications using the MIME4J library (NVD).

Exploitability

The vulnerability has been assessed with a low severity rating, requiring network access but no special privileges or user interaction to exploit (OpenWall).

Mitigation and workarounds

The vulnerability has been fixed in version 0.8.12-1 of the apache-mime4j package. Users are advised to upgrade to this version or later to address the security issue (Debian Tracker).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

apache-mime4j

Affected

bullseye

apache-mime4j

Affected

sid

apache-mime4j: 0.8.10-1

Fixed

trixie

apache-mime4j: 0.8.10-1

Fixed

Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-111765HIGH7.5
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-http-client-android
NoYesOct 20, 2026
CVE-2026-102834HIGH7.5
  • Java logoJava
  • org.bytedeco:javacv
NoYesOct 16, 2026
CVE-2026-111763MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-parent
NoYesOct 20, 2026
CVE-2026-111762MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-transport-rest
NoYesOct 20, 2026
CVE-2026-113730MEDIUM5.6
  • Java logoJava
  • ognl:ognl
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management