CVE-2022-42969:
ReDoS in py library when used with subversion
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
10/16/2022
Updated
10/21/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 |
---|---|---|---|
py | pip | <= 1.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the regular expression defined in InfoSvnCommand.lspattern, which is used to parse SVN repository info data. The regex contains multiple overlapping capture groups (e.g., .+? for author matching followed by optional size groups) and ambiguous space quantifiers (* and +) that can lead to exponential backtracking. When processing attacker-controlled input with excessive spaces (as demonstrated in the PoC), this causes polynomial/combinatorial regex complexity. The init method directly uses this regex for parsing, making both the regex definition and its usage point vulnerable. The code location and attack vector are explicitly referenced in multiple sources including GitHub advisories and NVD records.