Skip to content
OpenAdvisories
High SUSE-SU-2021:3841-1 1 CVE

Security update for python-Pygments

Published Dec 1, 2021 · Updated Feb 4, 2026

Summary

This update for python-Pygments fixes the following issues:

- CVE-2021-27291: Fixed ReDoS via crafted malicious input (bsc#1184812).

Fixed packages 6

ReleasePackageFixed in
SUSE · SLE HPC 15 Linux Enterprise High Performance Computing 15-ESPOS python-Pygments 2.2.0-4.9.1
SUSE · SLE HPC 15 Linux Enterprise High Performance Computing 15-LTSS python-Pygments 2.2.0-4.9.1
SUSE · SLES 15 SP2 Linux Enterprise Module for Package Hub 15 SP2 python-Pygments 2.2.0-4.9.1
SUSE · SLES 15 SP3 Linux Enterprise Module for Package Hub 15 SP3 python-Pygments 2.2.0-4.9.1
SUSE · SLES 15 Linux Enterprise Server 15-LTSS python-Pygments 2.2.0-4.9.1
SUSE · SLES for SAP 15 Linux Enterprise Server for SAP Applications 15 python-Pygments 2.2.0-4.9.1

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://bugzilla.suse.com/1184812
  • web
    https://www.suse.com/security/cve/CVE-2021-27291