GHSA-9w8r-397f-prfh

Suggest an improvement
Source
https://github.com/advisories/GHSA-9w8r-397f-prfh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-9w8r-397f-prfh/GHSA-9w8r-397f-prfh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9w8r-397f-prfh
Aliases
Published
2021-04-20T16:35:47Z
Modified
2024-10-14T18:45:46.729389Z
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
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Infinite Loop in Pygments
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

PyPI / pygments

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.5
Fixed
2.7.4

Affected versions

1.*

1.5
1.6rc1
1.6

2.*

2.0rc1
2.0
2.0.1
2.0.2
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.1
2.5.2
2.6.0
2.6.1
2.7.0
2.7.1
2.7.2
2.7.3