External Control of File Name or Path in php-svg-lib - #VU167972
Published: February 21, 2024 / Updated: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass protocol restrictions to make unauthorized server-side requests and, on PHP versions before 8.0, potentially delete arbitrary files or execute arbitrary code.
The vulnerability exists due to insufficient validation of externally controlled font paths in Dompdf's Cpdf::openFont when processing inline SVG styles through php-svg-lib. A remote attacker can supply an SVG with a malicious font reference to trigger an outbound request or, on older PHP versions, cause deserialization of untrusted archive metadata.