{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.james:apache-mime4j-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-21742 in the wild and no public exploit code.","fix":"Upgrade org.apache.james:apache-mime4j-core to 0.8.10 or later.","what":"CVE-2024-21742 is a medium-severity vulnerability in Apache James Mime4J, published on 27 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21742 and fix it if it is affected.\n\nWhat it is: CVE-2024-21742 is a medium-severity vulnerability in Apache James Mime4J, published on 27 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-21742 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.james:apache-mime4j-core (Maven): affected all versions; fixed in 0.8.10\n- org.apache.james:apache-mime4j-core (Maven): affected all versions; fixed in 0.8.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21742/ (Markdown: https://insights.sbomify.com/CVE-2024-21742/index.md)","id":"CVE-2024-21742","markdown":"https://insights.sbomify.com/CVE-2024-21742/index.md","name":"CVE-2024-21742","record":{"aliases":["DEBIAN-CVE-2024-21742","GHSA-jw7r-rxff-gv24","OESA-2024-1333","OESA-2024-1475","OESA-2024-1476","OESA-2024-1477","OESA-2024-1478","OESA-2024-1479","RHLW-2026-0436667cee7724a6","RHLW-2026-e78d277bde69c3f5","UBUNTU-CVE-2024-21742"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java MIME library","requires_auth":"none","summary":"Attackers can inject unintended headers into MIME messages via improper input validation in the Apache James Mime4J library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"james_mime4j","vendor":"apache"}],"cvss":{"score":5.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Improper input validation allows for header injection in MIME4J library when using MIME4J DOM for composing message.\nThis can be exploited by an attacker to add unintended headers to MIME messages.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache James Mime4J: Mime4J DOM header injection","id":"CVE-2024-21742","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"other","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"WordPress Houzez Login Register plugin \u003c= 3.2.5 - Privilege Escalation vulnerability","id":"CVE-2024-21743"},"packages":[{"ecosystem":"Maven","fixed":["0.8.10"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:apache-mime4j-core","purl":null,"source":"GHSA-jw7r-rxff-gv24"},{"ecosystem":"Maven","fixed":["0.8.10"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:apache-mime4j-core","purl":"pkg:maven/org.apache.james/apache-mime4j-core","source":"GHSA-jw7r-rxff-gv24"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2024-21741"},"products":["Apache James Mime4J"],"published":"2024-02-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-06","vendors":["Apache Software Foundation"]},"summary":"Attackers can inject unintended headers into MIME messages via improper input validation in the Apache James Mime4J library.","url":"https://insights.sbomify.com/CVE-2024-21742/"}