CVE-2020-13756
Sabberworm PHP CSS Parser before 8.3.1 calls eval on uncontrolled data ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Ubuntu (medium).
Description
Sabberworm PHP CSS Parser before 8.3.1 calls eval on uncontrolled data, possibly leading to remote code execution if the function allSelectors() or getSelectorsBySpecificity() is called with input from an attacker.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| composer::GitHub Security Advisory Composer | sabberworm/php-css-parser | 8.3.1, 8.2.1, 8.1.1, 8.0.1, 7.0.4, 6.0.2, 5.2.1, 5.1.3, 5.0.9, 4.0.1, 3.0.1, 2.0.1, 1.0.1 |
| composer::PHP Security Advisories Database | sabberworm/php-css-parser | no fix listed |
| debian 11 | php-horde-css-parser | 1.0.11-8+deb11u1 |
| debian 12 | php-horde-css-parser | no fix listed |
| echo | php-horde-css-parser | no fix listed |
| rapidfort debian 12 | php-horde-css-parser | 0:1.0.11-8+deb11u1 |
| rapidfort debian 13 | php-horde-css-parser | 0:1.0.11-8+deb11u1 |
| ubuntu 16.04-ESM | php-horde-css-parser | 1.0.8-1ubuntu1+esm1 |
| ubuntu 18.04-ESM | php-horde-css-parser | 1.0.11-1ubuntu1+esm1 |
References
- http://packetstormsecurity.com/files/157923/Sabberworm-PHP-CSS-Code-Injection.html
- http://seclists.org/fulldisclosure/2020/Jun/7
- https://github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml
- https://github.com/MyIntervals/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4
- https://github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4
- https://github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1
- https://lists.debian.org/debian-lts-announce/2025/10/msg00013.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-13756