SB2024030706 - Multiple vulnerabilities in php-svg-lib



SB2024030706 - Multiple vulnerabilities in php-svg-lib

Published: March 7, 2024 Updated: November 19, 2026

Security Bulletin ID SB2024030706
CSH Severity
High
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 100%
  • 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.