cve.bz

CVE-2023-45139 fonttools fonttools

7.5 highExploit referenceEPSS 1.2%Fix available

High (7.5) in fonttools fonttools. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in fonttools 4.43.0.

On this page
fontTools is a library for manipulating fonts, written in Python. The subsetting module has a XML External Entity Injection (XXE) vulnerability which allows an attacker to resolve arbitrary entities when a candidate font (OT-SVG fonts), which contains a SVG table, is parsed. This allows attackers to include arbitrary files from the filesystem fontTools is running on or make web requests from the host system. This vulnerability has been patched in version 4.43.0.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-05-08. 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-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-45139 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-45139?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-45139?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-2023-45139 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.28.2 before 4.43.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6673-4983-2vx5PyPIfonttools>=4.28.2 <4.43.04.43.0
PYSEC-2026-1388PyPIfonttools>=4.28.2 <4.43.04.43.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12fonttools4.38.0-1+deb12u1DEBIAN-CVE-2023-45139
Debian13, 14fonttools4.46.0-1DEBIAN-CVE-2023-45139
Ubuntu25.10fonttools4.55.3-2ubuntu0.25.10.1USN-7917-1
UbuntuPro:22.04:LTSfonttools4.29.1-2ubuntu0.1~esm1UBUNTU-CVE-2023-45139 USN-7917-1
UbuntuPro:24.04:LTSfonttools4.46.0-1ubuntu0.1~esm1USN-7917-1
openSUSETumbleweedpython-FontTools4.62.1-1.3openSUSE-SU-2026:11991-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Note that the impact is dependent on the environment fontTools is running in. The vulnerability has the most impact on consumers of fontTools who leverage the subsetting utility to subset untrusted OT-SVG fonts where the vulnerability may be exploited to read arbitrary files from the filesystem of the host fonttools is running on.

Red Hat's mitigation

There may be other ways to mitigate the issue. Here are some suggestions:

Set the `resolve_entities=False` flag on parsing methods.

Consider further methods of disallowing doctype declarations.

Consider recursive regex matching.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7fonttoolsNot affected
Red Hat Enterprise Linux 8google-noto-emoji-fontsNot affected
Red Hat Enterprise Linux 9google-noto-emoji-fontsNot affected

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-2023-45139.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

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

References

Check your stackJSON