ADVISORIES

Vulnerability

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.

38 advisories report this vulnerability, across 13 ecosystems.

Advisories in Red Hat

  • RHSA-2021:0781

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 1.2.2 security and bug fix update

    CVE-2020-15366CVE-2020-7789CVE-2021-20270CVE-2021-23980 Red Hat Updated 23 November 2026
  • RHSA-2021:3252

    Red Hat Security Advisory: python27 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Red Hat Updated 26 November 2026
  • RHSA-2021:4139

    Red Hat Security Advisory: resource-agents security, bug fix, and enhancement update

    CVE-2021-20270CVE-2021-27291 Red Hat Updated 13 November 2026
  • RHSA-2021:4150

    Red Hat Security Advisory: python36:3.6 security and bug fix update

    CVE-2021-20270CVE-2021-27291 Red Hat Updated 13 November 2026
  • RHSA-2021:4151

    Red Hat Security Advisory: python27:2.7 security update

    CVE-2020-27619CVE-2020-28493CVE-2021-20095CVE-2021-20270 Red Hat Updated 25 November 2026
  • RHVEX-CVE-2021-27291

    python-pygments: ReDoS in multiple lexers

    Moderate CVE-2021-27291 Red Hat Updated 26 November 2026

References