XPath Injection in Fonttools
CVE-2025-66034
fontTools is a library for manipulating fonts, written in Python. In versions from 4.33.0 to before 4.60.2, the fonttools varLib (or python3 -m fontTools.varLib) script has an arbitrary file write vulnerability that leads to remote code execution when a malicious .designspace file is processed. The vulnerability affects the main() code path of fontTools.varLib, used by the fonttools varLib CLI and any code that invokes fontTools.varLib.main(). This issue has been patched in version 4.60.2.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:L.
EPSS exploit prediction
EPSS 0.006, 48.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Fonttools — versions >= 4.33.0, < 4.60.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
7 public repositories with exploit or proof-of-concept code for this CVE:
- v3cn4x00/POC-CVE-2025-66034 (4 stars, last pushed 2026-03-21)
- symphony2colour/varlib-cve-2025-66034 (2 stars, last pushed 2026-08-31): Proof-of-concept exploit for CVE-2025-66034 in the fontTools variable font generation pipeline. A crafted .designspace file allows control of the output path, enabling arbitrary file writes. The scri…
- Liquid1998/Variatype.htb-CVE-2025-66034 (2 stars, last pushed 2026-03-16)
- Liquid-Sec/Variatype.htb-CVE-2025-66034 (2 stars, last pushed 2026-03-16)
- jwsly12/CVE-2025-66034-htb-ctf (1 star, last pushed 2026-04-07)
- tristanqtn/CVE-2025-66034 (1 star, last pushed 2026-03-29): CVE-2025-66034 exploit and documentation
- 4nuxd/CVE-2025-66034 (last pushed 2026-03-28): CVE-2025-66034 - fontTools varLib Arbitrary File Write → RCE PoC exploit for an Arbitrary File Write + XML Injection vulnerability in fontTools.varLib.
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.