Spring Framework ReDoS in AntPathMatcher <=7.0.7 (match methods)
CVE-2026-41848 Published on June 9, 2026
Spring Framework Denial of Service via AntPathMatcher
Applications may be vulnerable to a Regular Expression Denial of Service (ReDoS) attack if an attacker is able to provide a pattern which is then directly or indirectly supplied to one of the following methods in AntPathMatcher: match(String pattern, String path), matchStart(String pattern, String path), extractUriTemplateVariables(String pattern, String path).
Affected versions:
Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
Vulnerability Analysis
CVE-2026-41848 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Weakness Type
What is a ReDoS Vulnerability?
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles. Some regular expression engines have a feature called "backtracking". If the token cannot match, the engine "backtracks" to a position that may result in a different token that can match. Backtracking becomes a weakness if all of these conditions are met:
CVE-2026-41848 has been classified to as a ReDoS vulnerability or weakness.
Affected Versions
Spring Framework:- Version 7.0.0 and below 7.0.8 is affected.
- Version 6.2.0 and below 6.2.19 is affected.
- Version 6.1.0 and below 6.1.28 is affected.
- Version 5.3.0 and below 5.3.49 is affected.