CVE-2023-24813
PHP vulnerability analysis and mitigation

Overview

A critical-severity security vulnerability (CVE-2023-24813) was discovered in the open-source Dompdf library, an HTML-to-PDF converter written in PHP. The vulnerability was discovered by Ry0taK and disclosed on February 7, 2023. This flaw affects version 2.0.2 of the library and occurred due to an incomplete fix of the CVE-2023-23924 bug (GitHub Advisory, Security Online).

Technical details

The vulnerability stems from a difference in the attribute parser between Dompdf and php-svg-lib. The issue arises because while Dompdf respects xlink:href even if href is specified, php-svg-lib prioritizes the href attribute when both xlink:href and href are present. This discrepancy allows attackers to bypass protection on the Dompdf side by providing an empty xlink:href attribute. The vulnerability has been assigned a maximum CVSS3 Base Score of 10.0, indicating critical severity (GitHub Advisory).

Impact

When exploited, the vulnerability allows attackers to call arbitrary URLs with arbitrary protocols through SVG file manipulation. In PHP versions prior to 8.0.0, this can lead to arbitrary unserialization, potentially resulting in arbitrary file deletion and, depending on available classes, remote code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been addressed in version 2.0.3 of the Dompdf library. Users are strongly advised to upgrade to this patched version to mitigate the security risk (Security Online).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-68954HIGH7.5
  • PHPPHP
  • github.com/pterodactyl/wings
NoYesJan 06, 2026
CVE-2025-68456HIGH7
  • PHPPHP
  • cpe:2.3:a:craftcms:craft_cms
NoYesJan 05, 2026
CVE-2025-69197MEDIUM6.5
  • PHPPHP
  • pterodactyl/panel
NoYesJan 06, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management