cve.bz

CVE-2025-27363 FreeType Out-of-Bounds Write Vulnerability

8.1 highKEVEPSS 28%

High (8.1) in FreeType FreeType. In CISA KEV since 2025-05-06. EPSS 28% estimated probability of exploitation activity in the next 30 days.

On this page
An out of bounds write exists in FreeType versions 2.13.0 and below (newer versions of FreeType are not vulnerable) when attempting to parse font subglyph structures related to TrueType GX and variable font files. The vulnerable code assigns a signed short value to an unsigned long and then adds a static value causing it to wrap around and allocate too small of a heap buffer. The code then writes up to 6 signed long integers out of bounds relative to this buffer. This may result in arbitrary code execution. This vulnerability may have been exploited in the wild.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
28% (unchanged from 28% a week ago; 28% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-05-06, due 2025-05-27
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-05-07. 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-787 Out-of-bounds Write
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-27363 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27363?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27363?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-27363 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 CNA's record in the CVE List.

ProductAffected
FreeTypefrom 0.0.0 through 2.13.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11freetype2.10.4+dfsg-1+deb11u2DLA-4104-1
Debian12freetype2.12.1+dfsg-5+deb12u4DEBIAN-CVE-2025-27363 DSA-5880-1
Debian13, 14freetype2.13.1+dfsg-1DEBIAN-CVE-2025-27363
Ubuntu20.04:LTSfreetype2.10.1-2ubuntu0.4UBUNTU-CVE-2025-27363 USN-7352-1
Ubuntu22.04:LTSfreetype2.11.1+dfsg-1ubuntu0.3UBUNTU-CVE-2025-27363 USN-7352-1
UbuntuPro:14.04:LTSfreetype2.5.2-1ubuntu2.8+esm3USN-7352-2
UbuntuPro:16.04:LTSfreetype2.6.1-0.1ubuntu2.5+esm2UBUNTU-CVE-2025-27363 USN-7352-2
UbuntuPro:18.04:LTSfreetype2.8.1-2ubuntu2.2+esm1UBUNTU-CVE-2025-27363 USN-7352-2
Red Hatenterprise_linux:8::appstreamspice-client-win, spice-client-win-x64, spice-client-win-x860:8.10-1.el8_10RHSA-2025:8292
Red Hatenterprise_linux:8::baseosfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.9.1-10.el8_10RHSA-2025:3421
Red Hatenterprise_linux:8::crbmingw-freetype, mingw32-freetype, mingw64-freetype and 4 more0:2.8-3.el8_10.1RHSA-2025:8292
Red Hatenterprise_linux:9::appstreamfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.10.4-10.el9_5RHSA-2025:3407
Red Hatenterprise_linux:9::baseosfreetype, freetype-debuginfo, freetype-debugsource and 1 more0:2.10.4-10.el9_5RHSA-2025:3407
Red Hatrhel_aus:8.2::appstreamspice-client-win, spice-client-win-x64, spice-client-win-x860:8.2-1.el8_2RHSA-2025:9380
Red Hatrhel_aus:8.2::baseosfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.9.1-5.el8_2.1RHSA-2025:3393
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamspice-client-win, spice-client-win-x64, spice-client-win-x860:8.4-2.el8_4RHSA-2025:8253
Red Hatrhel_aus:8.4::baseos, rhel_e4s:8.4::baseos, rhel_tus:8.4::baseosfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.9.1-7.el8_4RHSA-2025:3382
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamspice-client-win, spice-client-win-x64, spice-client-win-x860:8.6-1.el8_6RHSA-2025:8219
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseosfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.9.1-6.el8_6.3RHSA-2025:3385
Red Hatrhel_e4s:9.0::appstreamfreetype, freetype-devel, freetype-debuginfo and 2 more0:2.10.4-7.el9_0RHSA-2025:3387
9 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 moreft2demos, freetype22.10.4-150000.4.18.1SUSE-SU-2025:0998-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 5 morefreetype22.10.4-150000.4.18.1SUSE-SU-2025:0998-1
SUSELinux Enterprise Module for Desktop Applications 15 SP6ft2demos2.10.4-150000.4.18.1SUSE-SU-2025:0998-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5ft2demos, freetype22.6.3-7.21.1SUSE-SU-2025:0960-1
openSUSELeap 15.6ft2demos, freetype22.10.4-150000.4.18.1SUSE-SU-2025:0998-1
AlmaLinux8freetype, freetype-devel2.9.1-10.el8_10ALSA-2025:3421
AlmaLinux8mingw32-freetype, mingw64-freetype, mingw32-freetype-static and 1 more2.8-3.el8_10.1ALSA-2025:8292
Rocky Linux8freetype0:2.9.1-10.el8_10RLSA-2025:3421
Rocky Linux8mingw-freetype0:2.8-3.el8_10.1RLSA-2025:8292
Rocky Linux8spice-client-win0:8.10-1.el8_10RLSA-2025:8292
Rocky Linux9freetype0:2.10.4-10.el9_5RLSA-2025:3407
Alpinev3.22, v3.23, v3.24freetype2.13.1-r0ALPINE-CVE-2025-27363
Azure Linux2freetype2.13.1-1AZL-58354
Alpaquita23freetype2.12.1-r1BELL-CVE-2025-27363
Alpaquitastreamfreetype2.13.1-r0BELL-CVE-2025-27363
BellSoft Hardened Containers23freetype2.12.1-r1BELL-CVE-2025-27363
BellSoft Hardened Containersstreamfreetype2.13.1-r0BELL-CVE-2025-27363

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability stems from improper handling of data types within the FreeType library during the parsing of font subglyph structures. This could causes incorrect calculations that result in heap buffer allocation being too small. This could allow the library write data beyond the allocated buffer, affecting adjacent memory areas, leading into arbitrary code executions compromising the entire system and system stability such as misleading behaviors in applications which relies on FreeType, or causing possible crashes impacting the entire system.

Red Hat's mitigation

By restricting the sources from which font files can be loaded allowing only fonts from trusted sources, as well as validating the input for font files to avoid malformed font structures or any data which could trigger the vulnerability would reduce the risk and mitigate this vulnerability until the fix is provided.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportfreetype-0:2.8-15.el7_9.1Fixed 2025-03-31RHSA-2025:3395
Red Hat Enterprise Linux 8mingw-freetype-0:2.8-3.el8_10.1Fixed 2025-05-29RHSA-2025:8292
Red Hat Enterprise Linux 8spice-client-win-0:8.10-1Fixed 2025-05-29RHSA-2025:8292
Red Hat Enterprise Linux 8freetype-0:2.9.1-10.el8_10Fixed 2025-03-31RHSA-2025:3421
Red Hat Enterprise Linux 8.2 Advanced Update Supportspice-client-win-0:8.2-1Fixed 2025-06-23RHSA-2025:9380
Red Hat Enterprise Linux 8.2 Advanced Update Supportfreetype-0:2.9.1-5.el8_2.1Fixed 2025-03-31RHSA-2025:3393
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportspice-client-win-0:8.4-2Fixed 2025-05-28RHSA-2025:8253
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportfreetype-0:2.9.1-7.el8_4Fixed 2025-03-31RHSA-2025:3382
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicespice-client-win-0:8.4-2Fixed 2025-05-28RHSA-2025:8253
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicefreetype-0:2.9.1-7.el8_4Fixed 2025-03-31RHSA-2025:3382
Red Hat build of OpenJDK 11java-11-openjdkNot affected
Red Hat build of OpenJDK 17java-17-openjdkNot affected
Red Hat build of OpenJDK 21java-21-openjdk-rhel7Not affected
Red Hat Enterprise Linux 10freetypeNot affected
Red Hat Enterprise Linux 10gjsNot affected
Red Hat Enterprise Linux 10java-21-openjdkNot affected
Red Hat Enterprise Linux 6freetypeOut of support scope
Red Hat Enterprise Linux 7thunderbirdNot affected
Red Hat Enterprise Linux 8java-17-openjdkNot affected
Red Hat Enterprise Linux 8java-21-openjdkNot affected
25 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-27363.

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.

References

Check your stackJSON