{"id":"CVE-2022-42969","aliases":["CVE-2022-42969","GHSA-w596-4wvx-j9j6","PYSEC-2022-42969","PYSEC-2022-43183"],"related":[],"kind":"vulnerability","state":"published","title":"The py library through 1.11.0 for Python allows remote attackers to conduct a ReDoS (Regular expression Denial of Service) attack via a Sub…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Withdrawn Advisory\nThis 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.\n\n### Original Description\nThe 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"py library versiones hasta 1.11.0, para Python permite a atacantes remotos llevar a cabo un ataque ReDoS (Expresión Regular de Denegación de Servicio) por medio de un repositorio Subversion con datos de información diseñados, porque el argumento InfoSvnCommand está mal gestionado","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"pysec"}],"published":"2022-10-16T00:00:00.000Z","modified":"2026-09-10T03:49:46.736Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:L/C:N/I:N/PR:N/S:U/UI:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:L/AV:N/A:L/C:N/I:N/PR:N/S:U/UI:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.11.0"}],"ecosystem":"PyPI","package":"py","purl":"pkg:pypi/py","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.11.0"}],"vendor":"pytest","product":"py","cpe":"cpe:2.3:a:pytest:py:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.11.0"}],"ecosystem":"PyPI","package":"py","purl":"pkg:pypi/py","source":"pysec"},{"ranges":[],"ecosystem":"PyPI","package":"py","purl":"pkg:pypi/py","source":"pysec"}],"references":[{"url":"https://pypi.org/project/py","tags":["package","product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pytest-dev/py/issues/287","tags":["exploit","issue-tracking","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pytest-dev/py/blob/cb87a83960523a2367d0f19226a73aed4ce4291d/py/_path/svnurl.py#L316","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://news.ycombinator.com/item?id=34163710","tags":["issue-tracking","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42969","tags":["advisory","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pytest-dev/py/issues/288","tags":["report","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pytest-dev/pytest/issues/10392","tags":["report","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-w596-4wvx-j9j6","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/py/PYSEC-2022-42969.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/py/PYSEC-2022-43183.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytest-dev/py","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-05-14T14:15:37.179Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-42969","url":"https://www.cve.org/CVERecord?id=CVE-2022-42969","licence":"CVE Terms of Use","modified":"2025-05-14T14:15:50.246Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w596-4wvx-j9j6","url":"https://github.com/advisories/GHSA-w596-4wvx-j9j6","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:46.736Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-42969","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42969","licence":"Public domain","modified":"2026-06-17T05:05:41.397Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-42969","url":"https://osv.dev/vulnerability/PYSEC-2022-42969","licence":"CC-BY-4.0","modified":"2026-06-09T13:30:10.233Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-43183","url":"https://osv.dev/vulnerability/PYSEC-2022-43183","licence":"CC-BY-4.0","modified":"2026-06-09T13:30:10.101Z"}],"updatedAt":"2026-11-25T22:58:15.742Z","epss":{"score":0.02102,"percentile":0.82277,"date":"2026-12-02T12:00:21.000Z"}}