ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2021-27291

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpygments
All versions before 1.6+dfsg-1ubuntu1.1+esm1 (fixed in 1.6+dfsg-1ubuntu1.1+esm1)
Ubuntu:16.04:LTSpygments
All versions before 2.1+dfsg-1ubuntu0.2 (fixed in 2.1+dfsg-1ubuntu0.2)
Ubuntu:16.04:LTSeric
All versions, no fix listed
Ubuntu:18.04:LTSpygments
All versions before 2.2.0+dfsg-1ubuntu0.2 (fixed in 2.2.0+dfsg-1ubuntu0.2)
Ubuntu:18.04:LTSeric
All versions, no fix listed
Ubuntu:20.04:LTSpygments
All versions before 2.3.1+dfsg-1ubuntu2.2 (fixed in 2.3.1+dfsg-1ubuntu2.2)
Ubuntu:20.04:LTSeric
All versions, no fix listed
Ubuntu:22.04:LTSeric
All versions, no fix listed
Ubuntu:24.04:LTSeric
All versions, no fix listed
Ubuntu:25.10eric
All versions, no fix listed
Ubuntu:26.10eric
All versions, no fix listed
Ubuntu:26.04:LTSeric
All versions, no fix listed

References