{"id":"CVE-2022-40896","published":"2023-07-19T00:00:00Z","modified":"2024-11-27T14:28:58Z","title":"A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer","vendor":null,"product":null,"tier":"tail","description":{"text":"A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00519,"percentile":0.44983,"provenance":"source"},"cwes":[],"references":[{"url":"https://pypi.org/project/Pygments/","tags":[]},{"url":"https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61","tags":[]},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO/","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":9.0}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-27T14:28:52.133335Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pygments","vulnerableRanges":["<2.15.0","<2.15.1"],"patched":["2.15.0","2.15.1"],"from":["GHSA-mrwq-x4v8-fh7p","PYSEC-2023-117"],"provenance":"source"}],"summary":{"text":"A regular expression denial-of-service (ReDoS) flaw exists in pygments/lexers/smithy.py in the Pygments syntax highlighting library, affecting its SmithyLexer component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:05Z"},"euvd":{"id":"EUVD-2023-0215","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pygments-cve-2021-27291","parents":[{"from":"CVE-2021-27291","to":"CVE-2022-40896","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pygments/lexers/templates.py"],"commits":["https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194","https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04"],"basis":"rarely changed file"}]},{"from":"CVE-2021-27292","to":"CVE-2022-40896","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pygments/lexers/templates.py"],"commits":["https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194","https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04"],"basis":"rarely changed file"}]}]}}