Patchfirst
CVE-2022-28368 Public exploit EPSS 83.9%

Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (within an HTML input file).

Fix:upgrade dompdf to 1.2.1 or later also fixes CVE-2014-2383 Details ↓

Summary

The flaw is in Dompdf version 1.2.1, an HTML-to-PDF rendering library, where the handling of the src:url field within an @font-face CSS statement in HTML input can be abused. An attacker who can supply an HTML input file that references a .php file through that field can achieve remote code execution.

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

First seen exploited 4 years after disclosure. Public exploit code (Metasploit) appeared 2 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codeMetasploit+2 days
  3. First seen exploitedVulnCheck KEV evidence+4 yrs

See the family tree

9 related vulnerabilities in the same code over 3 years.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2022-28368Dompdf 1.2.1 allows remote code execution via a .php file in the…3 Apr 2022
  2. relatedMedium

    Why these are linked:

    CVE-2022-2400External Control of File Name or Path in dompdf/dompdf18 Jul 2022
  3. relatedMedium

    Why these are linked:

    CVE-2022-41343registerFont in FontMetrics.php in Dompdf before 2.0.1 allows…25 Sep 2022
  4. relatedMedium

    Why these are linked:

    CVE-2021-3838PHAR Deserialization in dompdf/dompdf15 Nov 2024

5 more CVEs are in this family. See the family tree

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: dompdf/dompdf.

Packagistdompdf/dompdfGHSA-x752-qjv4-c4hc

Upgrade to 1.2.1 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2014-2383).

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

The first fix for CVE-2022-28368.

Affected versions

If you runUpgrade to
All versions before 1.2.11.2.1

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

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

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