External Control of File Name or Path in php-svg-lib - #VU167972

 

External Control of File Name or Path in php-svg-lib - #VU167972

Published: February 21, 2024 / Updated: November 19, 2026


Vulnerability identifier: #VU167972
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-73
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

php-svg-lib

Remediation

Install security update from vendor's website.

php-svg-lib - update to 0.5.2

External References

Related Security Bulletins