CVE-2021-27291

Source
https://cve.org/CVERecord?id=CVE-2021-27291
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27291.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-27291
Aliases
Downstream
ALPINE (1)
ALSA (3)
AZL (2)
BELL (1)
DEBIAN (1)
MGASA (2)
MINI (1)
OESA (1)
openSUSE (3)
RHSA (5)
RLSA (3)
SUSE (4)
UBUNTU (1)
Related
Published
2021-03-17T13:15:15Z
Modified
2026-10-20T10:54:35Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "9.0"
                        },
                        {
                            "last_affected": "9.0"
                        },
                        {
                            "introduced": "10.0"
                        },
                        {
                            "last_affected": "10.0"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "debian:debian_linux"
        },
        {
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "introduced": "32"
                        },
                        {
                            "last_affected": "32"
                        },
                        {
                            "introduced": "33"
                        },
                        {
                            "last_affected": "33"
                        }
                    ],
                    "source": "CPE_STRING"
                }
            ],
            "vendor_product": "fedoraproject:fedora"
        }
    ]
}
References

Affected packages

Git / github.com/pygments/pygments

Affected ranges

Type
GIT
Repo
https://github.com/pygments/pygments
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "1.1"
                },
                {
                    "fixed": "2.7.4"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "2e7e8c4a7b318f4032493773732754e418279a14"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27291.json"