CVE-2015-5145: Django ReDoS in validators.URLValidator
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.82571%
CWE
Published
5/17/2022
Updated
9/18/2024
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:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Django | pip | >= 1.8a1, < 1.8.3 | 1.8.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit shows a critical modification to the 'domain_re' regex in URLValidator
's host pattern matching. The vulnerability stems from the regex's structure allowing excessive backtracking (CWE-1333). The patch replaces the vulnerable pattern with one that uses negative lookaheads/lookbehinds ((?!-) and (?<!-)) to prevent backtracking attacks. The advisory explicitly states this was a security fix for URLValidator
's regex inefficiency, and the CWE-1333 mapping confirms the regex complexity issue.