CVE-2023-24813CWE-436

URI validation failure on SVG parsing. Bypass of CVE-2023-23924

Critical · published February 7, 2023

CVSS v3.1
10.0
EPSS
2%
Percentile
84.5
In the wild
Unconfirmed
What it is

🚨 A crafty misalignment in Dompdf’s SVG handling could let an attacker fetch any URL they want — imagine an empty invitation allowing anyone to crash your party! 🔥 Think of Dompdf as a restaurant serving up custom dishes from various recipes. If the chef doesn't double-check every order, a mischievous cook could slip in a rogue ingredient, ruining the meal — in this case, calling arbitrary URLs instead of intended resources. This vulnerability could lead to absolutely devastating consequences! An attacker could potentially delete files or even execute arbitrary code on your server, depending on what classes are available. This means a well-intentioned tool could become a door for malicious activities, compromising your entire setup.

Put simply

Think of Dompdf as a restaurant serving up custom dishes from various recipes. If the chef doesn't double-check every order, a mischievous cook could slip in a rogue ingredient, ruining the meal — in this case, calling arbitrary URLs instead of intended resources. CVE-2023-24813 allows attackers to exploit the differences between Dompdf and php-svg-lib regarding the parsing of `href` and `xlink:href` attributes in SVG files. By providing an empty `xlink:href`, the attacker bypasses Dompdf's protections, leading to potential arbitrary unserialize and remote code execution in PHP versions before 8.0.0.

What to do

This vulnerability could lead to absolutely devastating consequences! An attacker could potentially delete files or even execute arbitrary code on your server, depending on what classes are available. This means a well-intentioned tool could become a door for malicious activities, compromising your entire setup. Upgrade immediately to Dompdf version 2.0.3 or later to patch this vulnerability. Since there are no known workarounds, taking this step is crucial to secure your application. Act fast to protect your environment! You've got this! Follow these steps, and you'll be a security hero in no time! 🛡️

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:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02490 · 84.5th percentile
Weakness
CWE-436 · Interpretation Conflict
Published
2023-02-07T18:05Z
EPSS history
Timeline
  • 07 FEB 18:05Z
    URI validation failure on SVG parsing. Bypass of CVE-2023-23924
    cvelistv5