CWE-185: Incorrect Regular Expression, published in 2025
Filter
The product specifies a regular expression in a way that causes data to be improperly matched or compared.
What the weakness is: CWE-185 at MITRE. All weaknesses
Related attack patterns (CAPEC): 3
- CAPEC-6 Argument Injection Likelihood: High · Severity: High
- CAPEC-15 Command Delimiters Likelihood: High · Severity: High
- CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-185, as MITRE names them. Credits.
Ask an AI about CWE-185
Show the prompt
Explain CWE-185: Incorrect Regular Expression and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/185.html and https://cve.bz/cve/cwe/185?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 7.8CVE-2025-54365fastapi-guard fastapi guardEPSS 1.2%
fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting t…
- 7.5CVE-2025-20139cisco enterprise chat and emailEPSS 0.9%
A vulnerability in chat messaging features of Cisco Enterprise Chat and Email (ECE) could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition. This vulnerability is due to improper validation of user-s…