{"id":"CVE-2024-21742","aliases":["DEBIAN-CVE-2024-21742","EUVD-2024-0666","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"],"status":"published","title":"Apache James Mime4J: Mime4J DOM header injection","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01091,"percentile":0.65822,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-74"],"published":"2024-02-27T16:21:16Z","modified":"2026-11-02T12:00:32Z","fixes":[{"ecosystem":"Maven","package":"org.apache.james:apache-mime4j-core","fixed_in":["0.8.10"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"apache-mime4j","fixed_in":["0.8.10-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"apache-mime4j","fixed_in":["0.8.10-1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP3","package":"apache-mime4j","fixed_in":["0.8.3-2.oe2203sp3"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS","package":"apache-mime4j","fixed_in":["0.8.1-3.oe2203"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP1","package":"apache-mime4j","fixed_in":["0.8.3-2.oe2203sp1"],"sources":["osv"]},{"ecosystem":"openEuler:22.03-LTS-SP2","package":"apache-mime4j","fixed_in":["0.8.3-2.oe2203sp2"],"sources":["osv"]},{"ecosystem":"openEuler:20.03-LTS-SP1","package":"apache-mime4j","fixed_in":["0.8.1-2.oe1"],"sources":["osv"]},{"ecosystem":"openEuler:20.03-LTS-SP4","package":"apache-mime4j","fixed_in":["0.8.1-2.oe2003sp4"],"sources":["osv"]},{"ecosystem":"Red Hat Lightwell:Maven","package":"org.apache.james:apache-mime4j-dom","fixed_in":["0.8.9.rhlw-00004"],"sources":["osv"]},{"ecosystem":"Red Hat Lightwell:Maven","package":"org.apache.james:apache-mime4j-core","fixed_in":["0.8.9.rhlw-00004"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.james:apache-mime4j-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.10"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.10-1","0.8.11-1","0.8.12-1","0.8.13-1","0.8.2-1"]},{"source":"osv","ecosystem":"Debian:13","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.10-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.10-1"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.james:apache-mime4j-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.10"}]}],"versions":["0.7","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9"]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP3","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.3-2.oe2203sp3"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-3.oe2203"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP1","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.3-2.oe2203sp1"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP2","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.3-2.oe2203sp2"}]}]},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP1","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-2.oe1"}]}]},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP4","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-2.oe2003sp4"}]}]},{"source":"osv","ecosystem":"Red Hat Lightwell:Maven","package":"org.apache.james:apache-mime4j-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.9.rhlw-00004"}]}],"versions":["0.7","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9"]},{"source":"osv","ecosystem":"Red Hat Lightwell:Maven","package":"org.apache.james:apache-mime4j-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.9.rhlw-00004"}]}],"versions":["0.7","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.2-3","0.7.2-4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.2-4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.2-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.2-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.2-1","0.8.10-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.12-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.13-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"apache-mime4j","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.12-1","0.8.13-1"]}],"products":[{"vendor":"apache","product":"james_mime4j"},{"vendor":"apache software foundation","product":"apache james mime4j"}],"references":[{"url":"https://lists.apache.org/thread/nrqzg93219wdj056pqfszsd33dc54kfy","tags":["vendor-advisory","x_transferred","Mailing List","Vendor Advisory","advisory","web","report"]},{"url":"http://www.openwall.com/lists/oss-security/2024/02/27/5","tags":["x_transferred","Mailing List","article","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21742","tags":["advisory"]},{"url":"https://github.com/apache/james-mime4j/commit/9dec5df2a588fed8027839815daefa79ee66efd1","tags":["web","report"]},{"url":"https://github.com/apache/james-mime4j/commit/d25fb3fd35db42b060789a20634fbe3cb84aba17","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jw7r-rxff-gv24","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-21742","tags":["advisory"]},{"url":"https://github.com/apache/james-mime4j","tags":["package"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1333","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1475","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1476","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1477","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1478","tags":["advisory"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1479","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-21742","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2024/02/27/5","tags":["report"]},{"url":"https://github.com/apache/james-mime4j/pull/91","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-21742","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-21742","title":"Apache James Mime4J: Mime4J DOM header injection","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.","status":"published","published":"2024-02-27T16:21:16.432Z","modified":"2025-05-06T13:11:44.183Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:34:05.077718Z"}],"euvd":[{"id":"EUVD-2024-0666","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.","status":"published","published":"2024-02-27T16:21:16Z","modified":"2025-05-06T13:11:44Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:32:54.858112Z"}],"ghsa":[{"id":"GHSA-jw7r-rxff-gv24","title":"Apache James MIME4J improper input validation vulnerability","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.","status":"published","published":"2024-02-27T18:31:02Z","modified":"2026-03-15T05:07:40Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-20","CWE-74"],"updated_at":"2026-11-02T14:39:36.642723Z"}],"nvd":[{"id":"CVE-2024-21742","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.","status":"published","published":"2024-02-27T17:15:12.03Z","modified":"2026-06-17T07:10:03.9Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:09:38.473056Z"}],"osv":[{"id":"CVE-2024-21742","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.","status":"published","published":"2024-02-27T17:15:12.03Z","modified":"2026-03-14T12:30:54.788522Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:38.577405Z"},{"id":"DEBIAN-CVE-2024-21742","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.","status":"published","published":"2024-02-27T17:15:12.03Z","modified":"2026-11-02T12:00:32.060909009Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"GHSA-jw7r-rxff-gv24","title":"Apache James MIME4J improper input validation vulnerability","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.","status":"published","published":"2024-02-27T18:31:02Z","modified":"2026-09-10T03:50:06.25454056Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-20","CWE-74"],"updated_at":"2026-11-02T15:46:51.10002Z"},{"id":"OESA-2024-1333","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-03-29T11:06:46Z","modified":"2026-08-18T01:18:20.13381977Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"OESA-2024-1475","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-04-19T11:06:55Z","modified":"2026-08-18T01:18:23.72004376Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"OESA-2024-1476","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-04-19T11:06:55Z","modified":"2026-08-18T01:18:22.052212961Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"OESA-2024-1477","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-04-19T11:06:55Z","modified":"2026-08-18T01:18:23.685353165Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"OESA-2024-1478","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-04-19T11:06:55Z","modified":"2026-08-18T01:18:21.666167337Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"OESA-2024-1479","title":"apache-mime4j security update","description":"Java stream based MIME message parser.\r\n\r\nSecurity Fix(es):\r\n\r\nImproper 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.\n(CVE-2024-21742)","status":"published","published":"2024-04-19T11:06:55Z","modified":"2026-08-18T01:18:23.702370475Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"RHLW-2026-0436667cee7724a6","title":"Lightwell Security Advisory: apache-mime4j-dom 0.8.9.rhlw-00004","description":"Red Hat Lightwell has released org.apache.james:apache-mime4j-dom 0.8.9.rhlw-00004 with a backported security fix.\n\nCVE-2024-21742: 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.\n\nThis patched artifact is a drop-in replacement for org.apache.james:apache-mime4j-dom 0.8.9 from Maven Central.","status":"published","published":"2026-10-13T18:33:17Z","modified":"2026-10-27T04:00:03.606665805Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:58.636919Z"},{"id":"RHLW-2026-e78d277bde69c3f5","title":"Lightwell Security Advisory: apache-mime4j-core 0.8.9.rhlw-00004","description":"Red Hat Lightwell has released org.apache.james:apache-mime4j-core 0.8.9.rhlw-00004 with a backported security fix.\n\nCVE-2024-21742: 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.\n\nThis patched artifact is a drop-in replacement for org.apache.james:apache-mime4j-core 0.8.9 from Maven Central.","status":"published","published":"2026-09-28T20:42:52Z","modified":"2026-10-27T04:00:17.366694125Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:59.135214Z"},{"id":"UBUNTU-CVE-2024-21742","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.","status":"published","published":"2024-02-27T17:15:00Z","modified":"2026-10-17T12:56:31.311850336Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:54:42.68848Z"}]}}
