SB2024030706 - Multiple vulnerabilities in php-svg-lib
Published: March 7, 2024 Updated: November 19, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Code Injection (CVE-ID: CVE-2024-25117)
CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')
CVSSv4: 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]
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation of PHAR URLs in a font-family. A remote attacker can pass a specially crafted input to the application and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
2) External Control of File Name or Path (CVE-ID: N/A)
CWE-ID: CWE-73 - External Control of File Name or Path
CVSSv4: 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]
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.
Remediation
Install update from vendor's website.
References
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-f3qr-qr4x-j273
- https://github.com/dompdf/php-svg-lib/commit/732faa9fb4309221e2bd9b2fda5de44f947133aa
- https://github.com/dompdf/php-svg-lib/commit/8ffcc41bbde39f09f94b9760768086f12bbdce42
- https://github.com/dompdf/dompdf/security/advisories/GHSA-97m3-52wr-xvv2