CVE-2022-42969: High severity pytest py vulnerability
Withdrawn Advisory This advisory has been withdrawn because evidence does not suggest that CVE-2022-42969 is a valid, reproducible vulnerability. This link is maintained to preserve external references.
Original Description 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.
Other sources
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. Note: This has been disputed by multiple third parties as not being reproduceable and they argue this is not a valid vulnerability.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.10.0-3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.10.0-1 - Upgrade
Upgrade
pytest/pytestto a version that resolves this vulnerability.Fixed in 7.2.0
Event History
Frequently Asked Questions
What is the severity of CVE-2022-42969?
CVE-2022-42969 is considered a moderate severity vulnerability due to its potential for a ReDoS attack.
How do I fix CVE-2022-42969?
To mitigate CVE-2022-42969, upgrade the py library to version 1.11.1 or newer.
What is a ReDoS attack in the context of CVE-2022-42969?
In the context of CVE-2022-42969, a ReDoS attack targets vulnerable regular expressions to exhaust server resources.
Which software is affected by CVE-2022-42969?
CVE-2022-42969 affects the py library and its integration in Python applications up to version 1.11.0.
Is CVE-2022-42969 exploitable remotely?
Yes, CVE-2022-42969 can be exploited remotely by attackers through crafted data in Subversion repositories.