External risk intelligence

fontTools varLib Arbitrary File Write Leading to Remote Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2025-66034

fontTools is a library used by developers and build systems for font manipulation. It is not an internet-facing service, web application, or edge gateway. Processing untrusted designspace files is typically an offline, build-time, or internal development activity rather than a public-facing network service.

Remote Code Execution

Fonttools

4.33.0 to before 4.60.2

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability has been identified in the fontTools library, which is used for manipulating font files in Python. This issue allows for remote code execution if a specially crafted font file is processed, posing a significant risk if that file originates from an untrusted source. While the direct impact on our operational systems is unlikely given fontTools' typical use case, confirming its presence within our environment is prudent to ensure no unintended exposure.

  • Malicious font files can lead to code execution.
  • Confirms presence and potential exposure of fontTools.
  • Assess relevance; direct impact is unlikely.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by tricking a user into processing a malicious `.designspace` file. This could occur if the `.designspace` file is delivered through a method that bypasses typical user interaction, such as a compromised build pipeline or a shared file system. When processed by the `fontTools varLib` script, the vulnerability allows an attacker to write files anywhere on the system, potentially leading to code execution.

  • Unauthenticated network access required.
  • Processing a malicious `.designspace` file.
  • Arbitrary file write leading to RCE.

Live Threat

Current exploitation, exposure, and threat context

A malicious `.designspace` file could be used to execute arbitrary code on a system when processed by versions of the `fonttools` library prior to 4.60.2. This vulnerability affects the `fontTools.varLib` script, impacting both its command-line interface and any code that directly calls its `main()` function.

  • Arbitrary file write capability.
  • Processing a malicious `.designspace` file.
  • Remote code execution on the system.

Operational Fix

Recommended remediation, mitigation, and detection steps

The fonttools library, specifically its varLib component, is vulnerable to arbitrary file writes leading to remote code execution. This issue impacts Python projects utilizing fontTools between versions 4.33.0 and 4.60.2 when processing malicious `.designspace` files. Responsibility likely falls to development teams, build system administrators, or application owners who integrate this library into their software supply chain. The initial step involves identifying all instances of the vulnerable fonttools versions, assessing their reachability and criticality, and then planning remediation.

  • Application owners should own the remediation effort.
  • Verify fonttools library usage and versions.
  • Plan upgrades or vendor coordination.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the fontTools library?

fontTools is a comprehensive Python library designed for font developers and engineers. It provides tools to manipulate, convert, and inspect font files, often used in automated build pipelines, design software, or scripts that programmatically generate and optimize typography for applications and operating systems.

What does CWE-91 mean for CVE-2025-66034?

CWE-91 refers to XML Injection, which in this context means the software incorrectly handles data within a .designspace file. Because the library fails to sanitize these files, an attacker can manipulate them to write files to unintended locations on your system, resulting in the ability to execute arbitrary code.

How is this vulnerability triggered?

The flaw is triggered specifically when the fontTools.varLib script processes a malicious .designspace file. Normal font files that do not rely on this specific library component to perform file operations are not affected, nor is the library vulnerable if it is installed but never used to process untrusted designspace inputs.

Why does Halo Surface Signal categorize this as unlikely to be internet-facing?

Halo Surface Signal notes that fontTools is typically a development or build-time dependency, not a service that listens on the internet. Since it is rarely exposed directly to public network requests, the path for an attacker to supply a malicious file is generally limited to internal development environments or automated CI/CD pipelines.

Do I need to update fontTools immediately?

You should prioritize checking your environment for affected versions (4.33.0 through 4.60.1). If your applications or build processes utilize the varLib component to process external files, work with your development team to upgrade to version 4.60.2 or later to remove the vulnerable code path.

References