CVE-2023-23924 URI validation failure on SVG parsing in Dompdf
CriticalCVSS 9.8
EPSS 3.7%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| dompdf/dompdf(Packagist) | < 2.0.2 | 2.0.2 |
| dompdf/dompdf(Packagist) | = v0.6.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.6.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.6.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.7.0-beta3 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.3 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.4 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.5 | No fix listed |
| dompdf/dompdf(Packagist) | = v0.8.6 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.0.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.1.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.1.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.1 | No fix listed |
| dompdf/dompdf(Packagist) | = v1.2.2 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.0 | No fix listed |
| dompdf/dompdf(Packagist) | = v2.0.1 | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| dompdf/dompdf | = < 2.0.2 | No fix listed |
| dompdf project dompdf | = 2.0.1 | No fix listed |
References
- https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85 patch third-party-advisory
- github.com exploit
- github.com vendor-advisory
- github.com product
- https://github.com/dompdf/dompdf/releases/tag/v2.0.2 release-notes third-party-advisory
- Debian Security Tracker CVE-2023-23924 vendor-advisory