CVE-2023-50262
PHP vulnerability analysis and mitigation

Overview

Dompdf, an HTML to PDF converter for PHP, was found to contain a vulnerability (CVE-2023-50262) affecting versions prior to 2.0.4. The vulnerability was disclosed on December 13, 2023, and involves improper validation of SVG image references that could lead to resource exhaustion (GitHub Advisory).

Technical details

The vulnerability stems from insufficient validation of SVG image references. While Dompdf performs initial validation to prevent self-referential SVG documents, it fails to properly validate recursive chaining between two or more SVG documents. The php-svg-lib component, when used with Dompdf, processes SVG images referenced by image elements, but the chained reference validation is incomplete. This vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) by NVD and 5.3 (MEDIUM) by GitHub, with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD, GitHub Advisory).

Impact

When exploited, this vulnerability can cause the system to crash after exceeding the allowed execution time or memory usage. Multiple malicious requests can potentially lead to resource exhaustion, rendering the system unable to handle incoming requests. The impact primarily affects system availability without compromising confidentiality or integrity (GitHub Advisory).

Exploitability

The vulnerability can be exploited by sending specially crafted SVG documents that contain chained references between two or more SVG images, triggering infinite recursion in the validation process. The attack requires no special privileges or user interaction, and can be executed remotely (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Dompdf version 2.0.4. Users are advised to upgrade to this version or later to mitigate the risk. The fix includes improved SVG file reference recursion validation to prevent circular references across SVG documents (GitHub Advisory).

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-77143HIGH8.8
  • PHP logoPHP
  • composer://jweiland/pforum
NoYesAug 25, 2026
CVE-2026-77142HIGH8.8
  • PHP logoPHP
  • composer://jweiland/yellowpages2
NoYesAug 25, 2026
CVE-2026-77146HIGH8.3
  • PHP logoPHP
  • composer://in2code/femanager
NoYesAug 25, 2026
CVE-2026-77145HIGH7.1
  • PHP logoPHP
  • composer://jweiland/events2
NoYesAug 25, 2026
CVE-2026-77144HIGH7.1
  • PHP logoPHP
  • composer://jweiland/events2
NoYesAug 25, 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