cve.bz

CVE-2025-66034 fonttools fonttools: Blind XPath Injection

9.8 criticalExploit referenceEPSS 0.6%Fix available

Critical (9.8) in fonttools fonttools. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in fonttools 4.60.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-12-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-91 XML Injection (Blind XPath Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66034 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66034?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66034?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-66034 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
fonttools:fonttoolsfrom 4.33.0 before 4.60.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-768j-98cg-p3fvPyPIfonttools>=4.33.0 <4.60.24.60.2
PYSEC-2026-1389PyPIfonttools>=4.33.0 <4.60.24.60.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12fonttools4.38.0-1+deb12u1DEBIAN-CVE-2025-66034
Debian13fonttools4.57.0-1+deb13u1DEBIAN-CVE-2025-66034
Debian14fonttools4.61.1-1DEBIAN-CVE-2025-66034
Ubuntu25.10fonttools4.55.3-2ubuntu0.25.10.1UBUNTU-CVE-2025-66034 USN-7917-1
Ubuntu26.04:LTSfonttools4.57.0-3ubuntu1UBUNTU-CVE-2025-66034
UbuntuPro:22.04:LTSfonttools4.29.1-2ubuntu0.1~esm1USN-7917-1
UbuntuPro:24.04:LTSfonttools4.46.0-1ubuntu0.1~esm1UBUNTU-CVE-2025-66034 USN-7917-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-FontTools4.47.2-150600.3.3.1SUSE-SU-2026:0199-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-FontTools4.53.1-160000.3.1SUSE-SU-2026:20184-1
openSUSELeap 15.6python-FontTools4.47.2-150600.3.3.1SUSE-SU-2026:0199-1
openSUSELeap 16.0python-FontTools4.53.1-160000.3.1openSUSE-SU-2026:20119-1
openSUSETumbleweedpython-FontTools4.61.1-1.1openSUSE-SU-2026:10076-1
Alpaquita23, 25, streampy3-fonttoolsno fix listedBELL-CVE-2025-66034

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated Moderate rather than Important because the exploitability hinges on several limiting technical factors despite the high integrity impact. The arbitrary file-write and XML-injection pathways are only reachable when a user or automated workflow locally processes a malicious .designspace file, giving the flaw a local attack vector (AV:L) and requiring explicit user interaction (UI:R)—meaning an attacker cannot trigger it remotely over the network. The attack also involves high complexity (AC:H), as it depends on crafted designspace structures, controlled font sources, and specific invocation of fonttools varLib or code that directly calls varLib.main(). Additionally, the vulnerability does not expose confidentiality, and availability effects are limited to potential file corruption. These constraints significantly narrow real-world exposure, keeping the risk profile in the Moderate range despite the possibility of high local integrity impact when exploited.

Red Hat's mitigation

To mitigate this issue, avoid processing untrusted .designspace files with the fontTools varLib script or any application that invokes fontTools.varLib.main(). Restrict the execution environment of processes handling .designspace files to minimize potential impact from arbitrary file writes. If the fonttools package is not required, consider removing it.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-kserve-agent-rhel9:1770055852Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-kserve-controller-rhel9:1770055872Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-kserve-router-rhel9:1770055874Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-kserve-storage-initializer-rhel9:1770055932Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1770237759Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1770055428Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1770053703Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1770053831Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9:1770053721Fixed 2026-02-05RHSA-2026:2106
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1770053740Fixed 2026-02-05RHSA-2026:2106
Red Hat Ansible Automation Platform 2ansible-automation-platform-tech-preview/automation-dashboard-rhel9Fix deferred
Red Hat Enterprise Linux 7fonttoolsOut of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-aws-nvidia-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-azure-amd-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-azure-nvidia-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-gcp-nvidia-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-intel-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-nvidia-rhel9Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/instructlab-amd-rhel9Out of support scope
32 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-66034.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

1 more
  • 4nuxd/CVE-2025-66034 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2025-66034 - fontTools varLib Arbitrary File Write → RCE PoC exploit for an Arbitrary File Write + XML Injection vulnerability in font…

Attack patterns (CAPEC)

  • CAPEC-83 XPath Injection Likelihood: High · Severity: High
  • CAPEC-250 XML Injection Likelihood: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON