Bug 2251643 (CVE-2022-40896)

Summary: CVE-2022-40896 pygments: ReDoS in pygments
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abarbaro, adudiak, anthomas, bbuckingham, bcourt, brking, cdaley, davidn, ehelms, epacific, gercan, ggainey, haoli, hkataria, jajackso, jcammara, jchui, jhardy, jhe, jmitchel, jneedle, jobarker, jsherril, juwatts, kegrant, koliveir, kshier, ktsao, lzap, mabashia, mhulan, nboldt, nmoumoul, oalbrigt, omaciel, orabin, osousa, pbraun, pcreech, psrna, rchan, shvarugh, simaishi, smallamp, smcdonal, stcannon, teagle, tfister, thavo, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A denial-of-service vulnerability related to regular expressions was discovered in Pygments, specifically in the file pygments/lexers/smithy.py. An attacker could exploit this flaw by sending a carefully crafted request, leading to a denial-of-service situation.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2259080, 2251646, 2251647, 2251648, 2253941, 2259081, 2259082, 2259083, 2259084, 2259085, 2266051    
Bug Blocks: 2251644    

Description Avinash Hanwate 2023-11-27 03:00:46 UTC
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

Comment 2 Sandipan Roy 2023-12-11 06:31:15 UTC
Created python-pip tracking bugs for this issue:

Affects: fedora-all [bug 2253941]

Comment 4 Avinash Hanwate 2024-01-19 04:35:12 UTC
Created mingw-python-pygments tracking bugs for this issue:

Affects: fedora-all [bug 2259081]


Created python-pygments tracking bugs for this issue:

Affects: fedora-all [bug 2259082]


Created python-pygments2 tracking bugs for this issue:

Affects: epel-all [bug 2259080]

Comment 6 errata-xmlrpc 2024-02-29 19:41:43 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:1057 https://access.redhat.com/errata/RHSA-2024:1057

Comment 7 errata-xmlrpc 2024-03-04 20:49:31 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 8
  Red Hat Ansible Automation Platform 2.4 for RHEL 9

Via RHSA-2024:1072 https://access.redhat.com/errata/RHSA-2024:1072

Comment 8 errata-xmlrpc 2024-04-23 17:15:53 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.15 for RHEL 8

Via RHSA-2024:2010 https://access.redhat.com/errata/RHSA-2024:2010