PYSEC-2021-141

    Dashboard / Vulnerabilities / PYSEC-2021-141

    PYSEC-2021-141

    Published: 17 Mar 2021Last Modified: 8 Nov 2023

    Summary:

    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.

    Affected packages

    Package

    Name: pygments

    Purl: pkg:pypi/pygments

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    1.1
    1.1.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    PYSEC-2021-141 | CVE-DB