CVE-2020-13756
CRITICAL 9.8CVSS 3.1Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()
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.
- Published
- 3 Jun 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-94
- Also known as
- GHSA-phrq-v4q2-hmq6
- Sources
- NVDJSONOSV GHSA-phrq-v4q2-hmq6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sabberworm | php_css_parsercpe:2.3:a:sabberworm:php_css_parser:*:*:*:*:*:*:*:* |
< 8.3.1 | 8.3.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 8.3.0, < 8.3.1 | 8.3.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 8.2.0, < 8.2.1 | 8.2.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 8.1.0, < 8.1.1 | 8.1.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 8.0.0, < 8.0.1 | 8.0.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 7.0.0, < 7.0.4 | 7.0.4 |
| OSV | Packagist | sabberworm/php-css-parser | >= 6.0.0, < 6.0.2 | 6.0.2 |
| OSV | Packagist | sabberworm/php-css-parser | >= 5.2.0, < 5.2.1 | 5.2.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 5.1.0, < 5.1.3 | 5.1.3 |
| OSV | Packagist | sabberworm/php-css-parser | >= 5.0.0, < 5.0.9 | 5.0.9 |
| OSV | Packagist | sabberworm/php-css-parser | >= 4.0.0, < 4.0.1 | 4.0.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 3.0.0, < 3.0.1 | 3.0.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 2.0.0, < 2.0.1 | 2.0.1 |
| OSV | Packagist | sabberworm/php-css-parser | >= 1.0.0, < 1.0.1 | 1.0.1 |
References
- http://packetstormsecurity.com/files/157923/Sabberworm-PHP-CSS-Code-Injection.html · Exploit, Third Party Advisory, VDB Entry, WEB
- http://seclists.org/fulldisclosure/2020/Jun/7 · Exploit, Mailing List, Third Party Advisory, WEB
- https://github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4 · Patch, Third Party Advisory, WEB
- https://github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1 · Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/10/msg00013.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-13756 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml · WEB
- https://packetstormsecurity.com/files/cve/CVE-2020-13756 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 3 Jun 2020)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 26 Mar 2022)