Red Hat VEX
RHVEX-CVE-2021-27291
python-pygments: ReDoS in multiple lexers
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | python-pygments | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pygments | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents-aliyun | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents-gcp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents-sap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents-sap-hana | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | resource-agents-sap-hana-scaleout | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | sap-cluster-connector | All versions, no fix (out of support scope) |