Red Hat VEX
RHVEX-CVE-2025-66034
fonttools: fontTools: Arbitrary file write leading to remote code execution via malicious .designspace file
Details
This vulnerability in fontTools varLib allows a crafted .designspace file to trigger arbitrary file writes and XML-based content injection during variable-font generation. Because filenames are not sanitized, an attacker can use path traversal to overwrite files anywhere on the filesystem, and malicious payloads embedded in XML labelname elements can be injected directly into the generated output. When these overwritten files reside in executable or web-served locations, this can enable local remote-code execution or corruption of application or configuration files. The issue affects the varLib CLI and any code that invokes fontTools.varLib.main().
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | fonttools | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2025-66034
- https://bugzilla.redhat.com/show_bug.cgi?id=2417780
- https://www.cve.org/CVERecord?id=CVE-2025-66034
- https://nvd.nist.gov/vuln/detail/CVE-2025-66034
- https://github.com/fonttools/fonttools/commit/a696d5ba93270d5954f98e7cab5ddca8a02c1e32
- https://github.com/fonttools/fonttools/security/advisories/GHSA-768j-98cg-p3fv