OESA-2021-1154

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1154
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1154.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2021-1154
Upstream
Published
2021-05-06T11:02:50Z
Modified
2025-09-03T06:17:14.219423Z
Summary
python-pygments security update
Details

Security Fix(es):

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.(CVE-2021-27291)

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.(CVE-2021-20270)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / python-pygments

Package

Name
python-pygments
Purl
pkg:rpm/openEuler/python-pygments&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.2-3.oe1

Ecosystem specific

{
    "noarch": [
        "python3-pygments-2.5.2-3.oe1.noarch.rpm",
        "python2-pygments-2.5.2-3.oe1.noarch.rpm",
        "python-pygments-help-2.5.2-3.oe1.noarch.rpm"
    ],
    "src": [
        "python-pygments-2.5.2-3.oe1.src.rpm"
    ]
}