SCA: security update for phenx/php-svg-lib (GHSA-f3qr-qr4x-j273)

critical Tenable Self-Hosted Container Security Plugin ID 414233

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- php-svg-lib is a scalable vector graphics (SVG) file parsing/rendering library. Prior to version 0.5.2,
php-svg-lib fails to validate that font-family doesn't contain a PHAR url, which might leads to RCE on PHP
< 8.0, and doesn't validate if external references are allowed. This might leads to bypass of restrictions
or RCE on projects that are using it, if they do not strictly revalidate the fontName that is passed by
php-svg-lib. The `Style::fromAttributes(`), or the `Style::parseCssStyle()` should check the content of
the `font-family` and prevents it to use a PHAR url, to avoid passing an invalid and dangerous `fontName`
value to other libraries. The same check as done in the `Style::fromStyleSheets` might be reused.
Libraries using this library as a dependency might be vulnerable to some bypass of restrictions, or even
remote code execution, if they do not double check the value of the `fontName` that is passed by php-svg-
lib. Version 0.5.2 contains a fix for this issue. (CVE-2024-25117)

Solution

Update the phenx/php-svg-lib library and its related packages to version 0.5.2 or later.

See Also

https://github.com/advisories/GHSA-f3qr-qr4x-j273

Plugin Details

Severity: Critical

ID: 414233

Version: Revision 1.20

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.73

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-25117

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/21/2024

Vulnerability Publication Date: 2/21/2024

Reference Information

CVE: CVE-2024-25117