# CVE-2021-40111: Apache James IMAP parsing Denial Of Service

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-04 · Modified: 2024-08-04
- Aliases: CGA-46fh-gpwv-hv4r, CGA-mwvh-2c3x-3fqg, GHSA-fqgw-6qj5-8hmp
- Record: https://cvemate.com/vulnerability/CVE-2021-40111 · JSON: https://cvemate.com/vulnerability/CVE-2021-40111/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.133%, percentile 82.599%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache james: ≥ Apache James, ≤ 3.6.0
- apache james: \< 3.6.1
- chainguard keycloak (Chainguard): All versions (No fix recorded)
- wolfi keycloak (Wolfi): All versions (No fix recorded)
- org.apache.james james-server (Maven): \< 3.6.1

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/3>
- <http://www.openwall.com/lists/oss-security/2022/01/04/3>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40111>

---

Data as of 2026-12-05T09:54:45.898Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
