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

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.13%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-01-04T08:55:24.000Z
- Modified: 2026-09-10T03:49:27.720Z
- Also known as: GHSA-fqgw-6qj5-8hmp
- Weaknesses: CWE-835
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache James: from Apache James up to 3.6.0
- org.apache.james:james-server (Maven): before 3.6.1
- apache james: before 3.6.1

## Every score

- GitHub: rating Medium
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/3> (mailing-list, third-party-advisory, web)
- <http://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)

## Sources

- CVE List: [CVE-2021-40111](https://www.cve.org/CVERecord?id=CVE-2021-40111), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fqgw-6qj5-8hmp](https://github.com/advisories/GHSA-fqgw-6qj5-8hmp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-40111](https://nvd.nist.gov/vuln/detail/CVE-2021-40111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40111 · Whole record: https://cve.day/CVE-2021-40111.json · Rebuilt by cve.day 2026-11-25T22:58:06.394Z
