Rapid7 Vulnerability & Exploit Database

Ubuntu: USN-4897-1 (CVE-2021-27291): Pygments vulnerability

Back to Search

Ubuntu: USN-4897-1 (CVE-2021-27291): Pygments vulnerability

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:N/A:P)
Published
03/17/2021
Created
04/01/2021
Added
03/31/2021
Modified
03/31/2021

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)

  • ubuntu-upgrade-python-pygments
  • ubuntu-upgrade-python3-pygments

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

;