CVE-2024-37358 Apache James: denial of service through the use of IMAP literals
Attackers can cause denial of service in Apache James by abusing IMAP literals to trigger unbounded memory allocation and long computations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-37358?
CVE-2024-37358 is a high-severity denial of service vulnerability in Apache James server, published on 6 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Similarly to CVE-2024-34055, Apache James is vulnerable to denial of service through the abuse of IMAP literals from both authenticated and unauthenticated users, which could be used to cause unbounded memory allocation and very long computations
Version 3.7.6 and 3.8.2 restrict such illegitimate use of IMAP literals.
Weakness: CWE-770
Which versions are affected by CVE-2024-37358?
4 open source packages ship an affected version, including org.apache.james.protocols:protocols-imap. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.james.protocols:protocols-imap Maven | All versions | 3.7.6 |
org.apache.james.protocols:protocols-imap Maven | All versions | 3.7.6 |
org.apache.james.protocols:protocols-imap Maven | From 3.8.0 | 3.8.2 |
org.apache.james.protocols:protocols-imap Maven | From 3.8.0 | 3.8.2 |
Products include Apache James Server.
How do I fix CVE-2024-37358?
Upgrade org.apache.james.protocols:protocols-imap to a fixed version for your release line: 3.7.6 or 3.8.2.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-37358 being exploited?
There is no known exploitation of CVE-2024-37358 in the wild and no public exploit code.
Other vulnerabilities in Apache James server
Sources
Also known as GHSA-56jp-w6vw-j3jw.