Rapid7 Vulnerability & Exploit Database

Amazon Linux AMI 2: CVE-2021-27291: Security patch for python-pygments, python3-pygments (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Amazon Linux AMI 2: CVE-2021-27291: Security patch for python-pygments, python3-pygments (Multiple Advisories)

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
Published
03/17/2021
Created
07/21/2023
Added
07/21/2023
Modified
08/09/2023

Description

In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.

Solution(s)

  • amazon-linux-ami-2-upgrade-python-pygments
  • amazon-linux-ami-2-upgrade-python3-pygments
  • amazon-linux-ami-2-upgrade-python3-pygments-doc

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;