CVE-2021-40110
Java vulnerability analysis and mitigation

Overview

Apache James prior to version 3.6.1 was found to be vulnerable to a Regular Expression Denial of Service (ReDoS) attack through its IMAP implementation. The vulnerability, identified as CVE-2021-40110, was discovered using the Jazzer fuzzer and allows authenticated IMAP users to craft specific LIST commands that could trigger a denial of service condition (OSS Security).

Technical details

The vulnerability stems from the implementation of regular expressions in Apache James's IMAP service that were susceptible to catastrophic backtracking. When processing LIST commands, the vulnerable regular expression implementation could be exploited to cause excessive CPU consumption and potential system unresponsiveness. The severity of this vulnerability has been rated as HIGH with a CVSS v3.1 score of 7.5 (NVD).

Impact

When successfully exploited, this vulnerability could lead to a Denial of Service condition, potentially causing the Apache James server to become unresponsive due to excessive CPU consumption during regular expression processing. This could affect the availability of email services for all users of the affected system (NVD).

Mitigation and workarounds

The recommended mitigation is to upgrade to Apache James version 3.6.1 or higher, which implements the RE2J regular expression engine to execute regex patterns in linear time without backtracking. This change effectively prevents the ReDoS condition from occurring (OSS Security).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68931HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68703HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68704HIGH8.2
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-66169MEDIUM6.9
  • JavaJava
  • org.apache.camel:camel-neo4j
NoYesJan 14, 2026
CVE-2025-68925MEDIUM6.9
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management