CVE-2021-40111
MEDIUM 6.5CVSS 3.1Infinite Loop in Apache James
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.
- Published
- 4 Jan 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-fqgw-6qj5-8hmp
- Sources
- NVDJSONOSV GHSA-fqgw-6qj5-8hmpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | jamescpe:2.3:a:apache:james:*:*:*:*:*:*:*:* |
< 3.6.1 | 3.6.1 |
| OSV | Maven | org.apache.james:james-server | < 3.6.1 | 3.6.1 |
References
- http://www.openwall.com/lists/oss-security/2022/01/04/3 · Mailing List, Third Party Advisory, WEB
- https://www.openwall.com/lists/oss-security/2022/01/04/3 · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-40111 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Jan 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Jan 2022)