Advisory record · GHSA-f3qr-qr4x-j273

php-svg-lib lacks path validation on font through SVG inline styles

CVSS 6.8 MediumEPSS 0.0093 · 60th percentile

Published by the GitHub Advisory Database at 21 Feb 2024, 18:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phenx/php-svg-libPackagist<0.5.20.5.2
Identifiers
GHSA-f3qr-qr4x-j273 · CVE-2024-25117 · PKSA-3dsp-r6t7-8xmz
Weakness (CWE)
CWE-73 · CWE-502 · CWE-610
Published
21 Feb 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GHSA-f3qr-qr4x-j273 affects the php-svg-lib package (phenx/php-svg-lib) on Packagist for versions below 0.5.2. The library does not validate that a font-family value in SVG inline styles avoids PHAR URLs or external references, so a crafted SVG could pass a PHAR path as a font name to downstream libraries. Projects that use it could face restriction bypass or, on PHP below 8.0, possible remote code execution if they do not revalidate the font name. Upgrade to version 0.5.2, which is the fixed version listed.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.8 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0093, the 60th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:04 UTC First seen by agentprime
  2. 31 Oct 2026, 14:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.