Patchfirst
CVE-2020-13756 Public exploit EPSS 55.1%

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.

Fix:upgrade php-css-parser to 8.3.1 or later Details ↓

Summary

The flaw is in the Sabberworm PHP CSS Parser library, where it calls eval on uncontrolled data within its selector-handling functions. An attacker who can supply input to the allSelectors() or getSelectorsBySpecificity() functions could potentially achieve remote code execution, provided the application passes attacker-controlled data to those functions.

Heading is the official description · CVE.org
Breakdown
59.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 19 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 6 years after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+19 mo
  3. Public exploit codePoC-in-GitHub+6 yrs

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: sabberworm/php-css-parser.

Packagistsabberworm/php-css-parserGHSA-phrq-v4q2-hmq6

Upgrade to 8.3.1 or later

Set the version to 8.3.1 or later in your composer.json.

The first fix for CVE-2020-13756. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
8.3.0 up to 8.3.18.3.1
8.2.0 up to 8.2.18.2.1
8.1.0 up to 8.1.18.1.1
8.0.0 up to 8.0.18.0.1
7.0.0 up to 7.0.47.0.4
6.0.0 up to 6.0.26.0.2
5.2.0 up to 5.2.15.2.1
5.1.0 up to 5.1.35.1.3
5.0.0 up to 5.0.95.0.9
4.0.0 up to 4.0.14.0.1
3.0.0 up to 3.0.13.0.1
2.0.0 up to 2.0.12.0.1
1.0.0 up to 1.0.11.0.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close