Summary
Ben Caller discovered that Pygments incorrectly handled parsing certain
files. If a user or automated system were tricked into parsing a specially
crafted file, a remote attacker could cause Pygments to hang or consume
resources, resulting in a denial of service.
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 16.04 LTS 16.04:LTS | pygments | 2.1+dfsg-1ubuntu0.2 |
| Ubuntu · 18.04 LTS 18.04:LTS | pygments | 2.2.0+dfsg-1ubuntu0.2 |
| Ubuntu · 20.04 LTS 20.04:LTS | pygments | 2.3.1+dfsg-1ubuntu2.2 |
Vulnerabilities 1
-
High 7.5
Pygments vulnerable to Regular Expression Denial of Service (ReDoS)
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 …
References
-
report
https://ubuntu.com/security/CVE-2021-27291