Skip to content
OpenAdvisories
Medium ALAS2-2023-2117 1 CVE

Moderate: python3-pygments security update (Amazon Linux 2)

Published Jul 5, 2023 · Updated Jul 19, 2023

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-27291: 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.

Fixed packages 2

ReleasePackageFixed in
Amazon Linux · 2 python3-pygments 0:2.2.0-3.amzn2.0.3
Amazon Linux · 2 python3-pygments-doc 0:2.2.0-3.amzn2.0.3

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

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2021-27291.html