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

Advisory record · `GHSA-f3qr-qr4x-j273`

- **Identifiers:** `GHSA-f3qr-qr4x-j273` · `CVE-2024-25117` · `PKSA-3dsp-r6t7-8xmz`
- **State:** Confirmed
- **Severity:** CVSS 6.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-73](https://cwe.mitre.org/data/definitions/73.html) · [CWE-502](https://cwe.mitre.org/data/definitions/502.html) · [CWE-610](https://cwe.mitre.org/data/definitions/610.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md) · [Insecure deserialization](https://agentprime.io/advisories/tag/deserialization.md) · [CWE-610](https://agentprime.io/advisories/tag/cwe-610.md)
- **Published:** 21 Feb 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

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.

## Affected packages

- `phenx/php-svg-lib` (Packagist): affected `<0.5.2`; fixed in `0.5.2`

## 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

- 6.8 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`, from 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

- 31 Oct 2026, 14:04 UTC: First seen by agentprime
- 31 Oct 2026, 14:04 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-f3qr-qr4x-j273)

## Sources

- [GitHub Advisory Database: GHSA-f3qr-qr4x-j273](https://github.com/advisories/GHSA-f3qr-qr4x-j273)
- [OSV: GHSA-f3qr-qr4x-j273](https://osv.dev/vulnerability/GHSA-f3qr-qr4x-j273)
- <https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-f3qr-qr4x-j273>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25117>
- <https://github.com/dompdf/php-svg-lib/commit/732faa9fb4309221e2bd9b2fda5de44f947133aa>
- <https://github.com/dompdf/php-svg-lib/commit/8ffcc41bbde39f09f94b9760768086f12bbdce42>
- <https://github.com/dompdf/php-svg-lib>

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.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-f3qr-qr4x-j273>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-f3qr-qr4x-j273/>. Everything for agents: <https://agentprime.io/llms.txt>.
