UBUNTU-CVE-2021-20270

Source
https://ubuntu.com/security/CVE-2021-20270
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20270.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-20270
Related
Published
2021-03-09T00:00:00Z
Modified
2021-03-09T00:00:00Z
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

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / pygments

Package

Name
pygments
Purl
pkg:deb/ubuntu/pygments?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6+dfsg-1ubuntu1.1+esm1

Affected versions

1.*

1.6+dfsg-1
1.6+dfsg-1build1
1.6+dfsg-1ubuntu1
1.6+dfsg-1ubuntu1.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6+dfsg-1ubuntu1.1+esm1",
            "binary_name": "python-pygments"
        },
        {
            "binary_version": "1.6+dfsg-1ubuntu1.1+esm1",
            "binary_name": "python3-pygments"
        }
    ]
}

Ubuntu:16.04:LTS / pygments

Package

Name
pygments
Purl
pkg:deb/ubuntu/pygments?arch=src?distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1+dfsg-1ubuntu0.1

Affected versions

2.*

2.0.1+dfsg-1.1svn1
2.0.1+dfsg-1.1ubuntu1
2.1+dfsg-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.1+dfsg-1ubuntu0.1",
            "binary_name": "python-pygments"
        },
        {
            "binary_version": "2.1+dfsg-1ubuntu0.1",
            "binary_name": "python-pygments-doc"
        },
        {
            "binary_version": "2.1+dfsg-1ubuntu0.1",
            "binary_name": "python3-pygments"
        }
    ]
}

Ubuntu:18.04:LTS / pygments

Package

Name
pygments
Purl
pkg:deb/ubuntu/pygments?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.0+dfsg-1ubuntu0.1

Affected versions

2.*

2.2.0+dfsg-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.2.0+dfsg-1ubuntu0.1",
            "binary_name": "python-pygments"
        },
        {
            "binary_version": "2.2.0+dfsg-1ubuntu0.1",
            "binary_name": "python-pygments-doc"
        },
        {
            "binary_version": "2.2.0+dfsg-1ubuntu0.1",
            "binary_name": "python3-pygments"
        }
    ]
}

Ubuntu:20.04:LTS / pygments

Package

Name
pygments
Purl
pkg:deb/ubuntu/pygments?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.1+dfsg-1ubuntu2.1

Affected versions

2.*

2.3.1+dfsg-1ubuntu1
2.3.1+dfsg-1ubuntu2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.3.1+dfsg-1ubuntu2.1",
            "binary_name": "python-pygments"
        },
        {
            "binary_version": "2.3.1+dfsg-1ubuntu2.1",
            "binary_name": "python-pygments-doc"
        },
        {
            "binary_version": "2.3.1+dfsg-1ubuntu2.1",
            "binary_name": "python3-pygments"
        }
    ]
}