CVE-2021-40111: Apache James IMAP parsing Denial Of Service
Vulnerability summary
CVE-2021-40111 is a medium (CVSS 6.5) Loop with Unreachable Exit Condition vulnerability in apache software foundation apache james. EPSS estimates a 2.13% chance of exploitation in the next 30 days, higher than 82.5% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 04-01-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.13%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
Decrease -0.06 pp
From 2.19% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- james< 3.6.1
Apache software foundation1 product
- apache james≥ Apache James, ≤ 3.6.0
Chainguard1 product
- keycloakAll versions (No fix recorded)
Org.apache.james1 product
- james-server< 3.6.1
Wolfi1 product
- keycloakAll versions (No fix recorded)
5 vendors · 5 products
References
3 links- www.openwall.com/lists/oss-security/2022/01/04/3X Refsource MISCAdvisoryWEBMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2022/01/04/3Mailing ListX Refsource MLISTAdvisoryWEBThird Party Advisory