CVE-2023-23924CWE-551

URI validation failure on SVG parsing in Dompdf

Critical · published January 31, 2023

CVSS v3.1
10.0
EPSS
4%
Percentile
89.3
In the wild
Unconfirmed
What it is

🔥 A crafty uppercase SVG tag is the key to this serious flaw! The URI validation in Dompdf 2.0.1 can be bypassed, leaving your server vulnerable to some mind-blowingly simple but dangerous exploits! Think of it like someone sneaking a fake ID into a secure venue — if the bouncer doesn't check the case sensitivity, they might just let in someone who doesn’t belong. This vulnerability allows attackers to slip in malicious requests disguised as innocent SVG files. An attacker could potentially call any arbitrary URL or use various protocols, leading to devastating consequences like arbitrary file deletion or even remote code execution! With PHP versions before 8.0.0, the fallout could be catastrophic, allowing hackers to run rampant on your server.

Put simply

Think of it like someone sneaking a fake ID into a secure venue — if the bouncer doesn't check the case sensitivity, they might just let in someone who doesn’t belong. This vulnerability allows attackers to slip in malicious requests disguised as innocent SVG files. This vulnerability allows attackers to bypass URI validation on SVG parsing in Dompdf 2.0.1 by using `<image>` tags with uppercase letters, which can lead to arbitrary object unserialize through the `phar` URL wrapper in PHP versions below 8.0.0.

What to do

An attacker could potentially call any arbitrary URL or use various protocols, leading to devastating consequences like arbitrary file deletion or even remote code execution! With PHP versions before 8.0.0, the fallout could be catastrophic, allowing hackers to run rampant on your server. Immediately patch Dompdf to version 1.2.2 or higher to mitigate this vulnerability. Make sure to validate and sanitize any SVG files you are processing and review your server's PHP version to ensure you're on 8.0.0 or higher. Don't forget to audit the deployment for any other security best practices! You've got this! Follow these steps, and you'll be protecting your server like a pro! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.03572 · 89.3th percentile
Weakness
CWE-551 · Incorrect Behavior Order: Authorization Before Parsing and Canonicalization
Published
2023-01-31T23:54Z
EPSS history
Timeline
  • 31 JAN 23:54Z
    URI validation failure on SVG parsing in Dompdf
    cvelistv5