{"schemaVersion":3,"id":"CVE-2021-38542","aliases":["CGA-pgpv-68jp-r38v","CGA-qp69-c6g3-rr38","GHSA-84wg-rgp8-2hg4"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-01-04T08:55:21.000Z","modified":"2024-08-04T01:44:23.485Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02347,"percentile":0.83417,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02347},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02347,"percentile":0.83417}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02347,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02347,"percentile":0.83417}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"}],"affected":[{"vendor":"apache software foundation","product":"apache james","name":"Apache James","label":"apache james","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ Apache James, < 3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache James, < 3.6.1","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_james"},{"vendor":"apache","product":"james","name":"james","label":"james","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.1","eol":null,"hubHref":"/vendor/apache/james"},{"vendor":"chainguard","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.apache.james","product":"james-server","name":"org.apache.james:james-server","label":"james-server","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.james/james-server","purlType":"maven","versions":[{"text":"< 3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/04/1","label":"www.openwall.com/lists/oss-security/2022/01/04/1","hostname":"www.openwall.com","tags":["X Refsource MISC","Advisory","WEB","Mailing List","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/04/1","label":"www.openwall.com/lists/oss-security/2022/01/04/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/09/20/1","label":"www.openwall.com/lists/oss-security/2022/09/20/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38542","label":"nvd.nist.gov/vuln/detail/CVE-2021-38542","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-3G65-H84V-RWPX","CGA-M894-HRQW-Q27V"]},"timeline":[{"kind":"published","date":"2022-01-04T08:55:21.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:44:23.485Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:13:16.843Z","stale":false,"partial":false}}