CVE-2022-42969
ADVISORY - githubSummary
The py library through 1.11.0 for Python allows remote attackers to conduct a ReDoS (Regular expression Denial of Service) attack via a Subversion repository with crafted info data, because the InfoSvnCommand argument is mishandled.
The particular codepath in question is the regular expression at py._path.svnurl.InfoSvnCommand.lspattern
and is only relevant when dealing with subversion (svn) projects. Notably the codepath is not used in the popular pytest project. The developers of the pytest package have released version 7.2.0
which removes their dependency on py
. Users of pytest
seeing alerts relating to this advisory may update to version 7.2.0
of pytest
to resolve this issue. See https://github.com/pytest-dev/py/issues/287#issuecomment-1290407715 for additional context.
Common Weakness Enumeration (CWE)
Inefficient Regular Expression Complexity
Inefficient Regular Expression Complexity
Inefficient Regular Expression Complexity
NIST
3.9
CVSS SCORE
5.3mediumGitHub
3.9
CVSS SCORE
8.7highDebian
-
CVSS SCORE
N/AlowUbuntu
3.9
CVSS SCORE
7.5mediumPypA
PYSEC-2022-42969
-
Red Hat
1.6
CVSS SCORE
3.1lowintheWild
-
-