ALPINE-CVE-2021-27291

Source
https://security.alpinelinux.org/vuln/CVE-2021-27291
Import Source
https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-27291.json
JSON Data
https://api.osv.dev/v1/vulns/ALPINE-CVE-2021-27291
Upstream
Published
2021-03-17T13:15:15.137Z
Modified
2026-06-15T18:26:17.779006054Z
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

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.

References

Affected packages

Alpine:v3.11 / 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.5.2-r1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-27291.json"

Alpine:v3.12 / 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.6.1-r1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-27291.json"