ADVISORIES

Red Hat VEX

RHVEX-CVE-2021-27291

python-pygments: ReDoS in multiple lexers

Moderate No fix available CVE-2021-27291

Details

A denial of service attack was discovered against pygments. Some of the regular expressions used to tokenise source code for highlighting have exponential complexity. A specially crafted input file could cause pygments to take effectively infinite time to parse, consuming CPU resources and denying access to the service.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:6python-pygments
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7python-pygments
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents-aliyun
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents-gcp
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents-sap
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents-sap-hana
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7resource-agents-sap-hana-scaleout
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7sap-cluster-connector
All versions, no fix (out of support scope)

References