Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.james/apache-mime4j-core
  4. ›
  5. CVE-2024-21742

CVE-2024-21742: Apache James MIME4J improper input validation vulnerability

February 27, 2024 (updated February 14, 2025)

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

  • github.com/advisories/GHSA-jw7r-rxff-gv24
  • github.com/apache/james-mime4j
  • github.com/apache/james-mime4j/commit/9dec5df2a588fed8027839815daefa79ee66efd1
  • github.com/apache/james-mime4j/commit/d25fb3fd35db42b060789a20634fbe3cb84aba17
  • lists.apache.org/thread/nrqzg93219wdj056pqfszsd33dc54kfy
  • nvd.nist.gov/vuln/detail/CVE-2024-21742

Code Behaviors & Features

Detect and mitigate CVE-2024-21742 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.10

Fixed versions

  • 0.8.10

Solution

Upgrade to version 0.8.10 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

maven/org.apache.james/apache-mime4j-core/CVE-2024-21742.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.