Vulnerability · Published Jan 31, 2023 · Assigned by GitHub_M

CVE-2023-23924URI validation failure on SVG parsing in Dompdf

Critical 10.0

In plain English

A critical-severity security flaw in dompdf from dompdf. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 89% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)3.6%top 10.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistdompdf/dompdf2.0.2GHSA-3cw5-7cxw-v5qg

Affected products (as reported)

VendorProductVersions
dompdf dompdf < 2.0.2

Weakness: CWE-551 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H

References