GHSA-w596-4wvx-j9j6
Vulnerability from github
8.7 (High) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "py" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "1.11.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-42969" ], "database_specific": { "cwe_ids": [ "CWE-1333" ], "github_reviewed": true, "github_reviewed_at": "2022-10-18T18:03:13Z", "nvd_published_at": "2022-10-16T06:15:00Z", "severity": "HIGH" }, "details": "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.\n\nThe 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.", "id": "GHSA-w596-4wvx-j9j6", "modified": "2024-10-21T19:58:27Z", "published": "2022-10-16T12:00:23Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-42969" }, { "type": "WEB", "url": "https://github.com/pytest-dev/py/issues/287" }, { "type": "WEB", "url": "https://github.com/pytest-dev/py/issues/288" }, { "type": "WEB", "url": "https://github.com/pytest-dev/pytest/issues/10392" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-w596-4wvx-j9j6" }, { "type": "WEB", "url": "https://github.com/pypa/advisory-database/tree/main/vulns/py/PYSEC-2022-42969.yaml" }, { "type": "PACKAGE", "url": "https://github.com/pytest-dev/py" }, { "type": "WEB", "url": "https://github.com/pytest-dev/py/blob/cb87a83960523a2367d0f19226a73aed4ce4291d/py/_path/svnurl.py#L316" }, { "type": "WEB", "url": "https://news.ycombinator.com/item?id=34163710" }, { "type": "WEB", "url": "https://pypi.org/project/py" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N", "type": "CVSS_V4" } ], "summary": "ReDoS in py library when used with subversion " }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.