Red Hat VEX
RHVEX-CVE-2023-44270
PostCSS: Improper input validation in PostCSS
Details
There's a flaw in the PostCSS package where it fails to properly validate the input CSS, causing commented lines to be interpreted as code. An attacker may leverage that by crafting a CSS file with comments containing CSS code in order to force PostCSS to include the malicious CSS elements in its output. An successful attack may lead to integrity impact as it may inject elements in a web page when parsing untrusted CSS input.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | grafana | All versions, will not be fixed |
| Red Hat:enterprise_linux:10 | grafana-selinux | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | thunderbird | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | grafana | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-azure-monitor | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-cloudwatch | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-elasticsearch | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-graphite | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-influxdb | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-loki | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-mssql | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-mysql | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-opentsdb | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-postgres | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-prometheus | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-selinux | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | grafana-stackdriver | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | pcs | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | pcs-snmp | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | pcs | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | pcs-snmp | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2023-44270
- https://bugzilla.redhat.com/show_bug.cgi?id=2326998
- https://www.cve.org/CVERecord?id=CVE-2023-44270
- https://nvd.nist.gov/vuln/detail/CVE-2023-44270
- https://github.com/github/advisory-database/issues/2820
- https://github.com/postcss/postcss/blob/main/lib/tokenize.js#L25
- https://github.com/postcss/postcss/commit/58cc860b4c1707510c9cd1bc1fa30b423a9ad6c5
- https://github.com/postcss/postcss/releases/tag/8.4.31