CVE-2022-21195: Regular expression denial of service in url_regex
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54271%
CWE
Published
5/21/2022
Updated
1/27/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
url_regex | pip | <= 1.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the regular expression implementation in the UrlRegex class. The provided PoC demonstrates ReDoS through the detect method, which applies the vulnerable regex pattern. The advisory links directly to the url_regex.py file containing the regex implementation. While the exact regex pattern isn't shown in provided sources, the demonstrated attack vector through the detect method and the package's purpose of URL validation confirm this as the entry point for the vulnerable regex execution.