Live threats

All CVEs / Dompdf Project

CVE-2023-23924Dompdf Project Dompdf

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.7%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Feb 1, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-551, CWE-863
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Dompdf is an HTML to PDF converter. The URI validation on dompdf 2.0.1 can be bypassed on SVG parsing by passing `<image>` tags with uppercase letters. This may lead to arbitrary object unserialize on PHP < 8, through the `phar` URL wrapper. An attacker can exploit the vulnerability to call arbitrary URL with arbitrary protocols, if they can provide a SVG file to dompdf. In PHP versions before 8.0.0, it leads to arbitrary unserialize, that will lead to the very least to an arbitrary file deletion and even remote code execution, depending on classes that are available.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dompdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist dompdf/dompdf < 2.0.2 2.0.2 composer require "dompdf/dompdf:^2.0.2"

Per OSV / GitHub Advisories (GHSA-3cw5-7cxw-v5qg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dompdf_projectdompdf2.0.1

Official sources

References

Links published by the sources. Open them with care.