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
Related
Published
2021-03-17T13:15:15.137Z
Modified
2026-04-16T04:35:24.379383903Z
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.

References

Affected packages

Git / github.com/pygments/pygments

Affected ranges

Type
GIT
Repo
https://github.com/pygments/pygments
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.1"
        },
        {
            "fixed": "2.7.4"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27291.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "10.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "32"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "33"
            }
        ]
    }
]