{"schemaVersion":3,"id":"CVE-2021-40111","aliases":["CGA-46fh-gpwv-hv4r","CGA-mwvh-2c3x-3fqg","GHSA-fqgw-6qj5-8hmp"],"status":"published","duplicateOf":null,"title":null,"description":"In Apache James, while fuzzing with Jazzer the IMAP parsing stack, we discover that crafted APPEND and STATUS IMAP command could be used to trigger infinite loops resulting in expensive CPU computations and OutOfMemory exceptions. This can be used for a Denial Of Service attack. The IMAP user needs to be authenticated to exploit this vulnerability. This affected Apache James prior to version 3.6.1. This vulnerability had been patched in Apache James 3.6.1 and higher. We recommend the upgrade.","dates":{"published":"2022-01-04T08:55:24.000Z","modified":"2024-08-04T02:27:31.847Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02122,"percentile":0.81624,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02122},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02122,"percentile":0.81624}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02122,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02122,"percentile":0.81624}]},"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-835","name":"Loop with Unreachable Exit Condition ('Infinite Loop')","description":"The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/835.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.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache James, ≤ 3.6.0","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/3","label":"www.openwall.com/lists/oss-security/2022/01/04/3","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/3","label":"www.openwall.com/lists/oss-security/2022/01/04/3","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40111","label":"nvd.nist.gov/vuln/detail/CVE-2021-40111","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-R4FH-62HG-8Q43","CGA-V8HG-8W5V-X5QV"]},"timeline":[{"kind":"published","date":"2022-01-04T08:55:24.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:27:31.847Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:24:53.716Z","stale":false,"partial":false}}