{"id":"CVE-2021-38542","aliases":["CVE-2021-38542","GHSA-84wg-rgp8-2hg4"],"related":[],"kind":"vulnerability","state":"published","title":"Apache James vulnerable to STARTTLS command injection (IMAP and POP3)","summary":"Apache James prior to release 3.6.1 is vulnerable to a buffering attack relying on the use of the STARTTLS command. This can result in Man-in -the-middle command injection attacks, leading potentially to leakage of sensible information.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Apache James prior to release 3.6.1 is vulnerable to a buffering attack relying on the use of the STARTTLS command. This can result in Man-in -the-middle command injection attacks, leading potentially to leakage of sensible information.","source":"cvelist"},{"lang":"es","text":"Apache James versiones anteriores a 3.6.1, es vulnerable a un ataque de buffering que es basado en el uso del comando STARTTLS. Esto puede resultar en ataques de inyección de comandos de tipo \"Man-in-the-middle\", conllevando potencialmente a un filtrado de información confidencial","source":"nvd"}],"published":"2022-01-04T08:55:21.000Z","modified":"2026-09-10T03:49:10.761Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-77","CWE-327"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache James","fixed":"3.6.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache James","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.6.1"}],"ecosystem":"Maven","package":"org.apache.james:james-server","purl":"pkg:maven/org.apache.james/james-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.6.1"}],"vendor":"apache","product":"james","cpe":"cpe:2.3:a:apache:james:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/04/1","tags":["mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/04/1","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/09/20/1","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38542","tags":["advisory"],"sources":["ghsa"]}],"credits":["We thanks Benoit Tellier, Raphael Ouazana for reporting this vulnerability as well as Damian Poddebniak, Fabian Ising, Hanno Böck, and Sebastian Schinzel Münster University of Applied Science for their research and tools regarding STARTTLS security."],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38542","url":"https://www.cve.org/CVERecord?id=CVE-2021-38542","licence":"CVE Terms of Use","modified":"2024-08-04T01:44:23.485Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-84wg-rgp8-2hg4","url":"https://github.com/advisories/GHSA-84wg-rgp8-2hg4","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:10.761Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38542","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38542","licence":"Public domain","modified":"2026-06-17T04:02:19.870Z"}],"updatedAt":"2026-11-25T22:58:06.393Z","epss":{"score":0.02336,"percentile":0.84049,"date":"2026-12-01T12:00:22.000Z"}}