Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2021-27291

Publication date 17 March 2021

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
eric 24.04 LTS noble
Vulnerable
23.10 mantic Ignored
23.04 lunar Ignored
22.10 kinetic Ignored
22.04 LTS jammy
Vulnerable
21.10 impish Ignored
21.04 hirsute Ignored
20.10 groovy Ignored
20.04 LTS focal
Needs evaluation
18.04 LTS bionic
Needs evaluation
16.04 LTS xenial
Needs evaluation
14.04 LTS trusty Not in release
pygments 24.04 LTS noble
Fixed 2.7.1+dfsg-2ubuntu1
23.10 mantic
Fixed 2.7.1+dfsg-2ubuntu1
23.04 lunar
Fixed 2.7.1+dfsg-2ubuntu1
22.10 kinetic
Fixed 2.7.1+dfsg-2ubuntu1
22.04 LTS jammy
Fixed 2.7.1+dfsg-2ubuntu1
21.10 impish
Fixed 2.7.1+dfsg-2ubuntu1
21.04 hirsute
Fixed 2.7.1+dfsg-2ubuntu1
20.10 groovy
Fixed 2.3.1+dfsg-4ubuntu0.2
20.04 LTS focal
Fixed 2.3.1+dfsg-1ubuntu2.2
18.04 LTS bionic
Fixed 2.2.0+dfsg-1ubuntu0.2
16.04 LTS xenial
Fixed 2.1+dfsg-1ubuntu0.2
14.04 LTS trusty

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Notes


avital

eric looks to contain a vendored copy of pygments

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
pygments

Severity score breakdown

Parameter Value
Base score 7.5 · High
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

Related Ubuntu Security Notices (USN)

    • USN-4897-2
    • Pygments vulnerabilities
    • 14 August 2023

Other references