CVE-2022-42969: High severity pytest py vulnerability

Published Oct 16, 2022
·
Updated

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

4 affected componentsFixes available
pytest py<=1.11.0
pip/py<=1.11.0
Microsoft cbl2 python-py 1.10.0-3<1.10.0-3
1.10.0-3
Microsoft cm1 python-py 1.10.0-1<1.10.0-1
1.10.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.10.0-3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.10.0-1
  3. Upgrade

    Upgrade pytest/pytest to a version that resolves this vulnerability.

    Fixed in 7.2.0

Event History

Oct 16, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·12:00 PM
Data Sourced
via GitHub·12:00 PM
DescriptionSeverityWeaknessAffected Software
Aug 1, 2025
Withdrawn
via GitHub·08:34 PM
Oct 2, 2025
Data Sourced
via Microsoft·06:11 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:11 AM
Affected Software
Updated
via Microsoft·06:11 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2022-42969?

To mitigate CVE-2022-42969, upgrade the py library to version 1.11.1 or newer.

3

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.

4

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.

5

Is CVE-2022-42969 exploitable remotely?

Yes, CVE-2022-42969 can be exploited remotely by attackers through crafted data in Subversion repositories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203