CVE-2021-20270

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-20270
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20270.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-20270
Aliases
Related
Published
2021-03-23T17:15:13Z
Modified
2024-06-06T13:26:45.952103Z
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

Alpine:v3.14 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.15 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.16 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.17 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.18 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.19 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Alpine:v3.20 / py3-pygments

Package

Name
py3-pygments
Purl
pkg:apk/alpine/py3-pygments?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.4-r0

Affected versions

1.*

1.3.1-r0
1.3.1-r1
1.4-r0
1.4-r1
1.4-r2
1.5-r0
1.6-r0

2.*

2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.1.3-r0
2.1.3-r1
2.1.3-r2
2.1.3-r3
2.2.0-r0
2.2.0-r1
2.4.0-r0
2.4.2-r0
2.4.2-r1
2.4.2-r2
2.5.1-r0
2.5.2-r0
2.5.2-r1
2.6.1-r0
2.7.0-r0
2.7.1-r0
2.7.2-r0
2.7.3-r0

Git / github.com/pygments/pygments

Affected ranges

Type
GIT
Repo
https://github.com/pygments/pygments
Events

Affected versions

1.*

1.5
1.6
1.6rc1

2.*

2.0
2.0.1
2.0.2
2.0rc1
2.1
2.1.1
2.1.2
2.1.3
2.2.0
2.3.0
2.3.1
2.4.0
2.4.1
2.4.2
2.5.0
2.5.1
2.5.2
2.6.0
2.6.1
2.7.0
2.7.1
2.7.2
2.7.3