Skip to content
Server Security Center
KEVhigh8.1

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

FreeType · listed in the CISA catalog of actively exploited vulnerabilities since 2025-05-06.

CVSS v3.1 (CVE record)
8.1
high
EPSS (exploit probability, 30 days)
28%
higher than 98.1% of all CVEs
Added to CISA KEV
2025-05-06
US federal due date 2025-05-27
Ubuntu priority
medium

CVE-2025-27363 explained

CVE-2025-27363 is an out-of-bounds write in FreeType 2.13.0 and earlier. It occurs while parsing font subglyph structures in TrueType GX and variable font files. An integer wrap-around causes a too-small heap buffer to be allocated, and data is then written past its end. This may allow arbitrary code execution, and the flaw may have been exploited in the wild.

Impact

Successful exploitation may result in arbitrary code execution, with high impact on confidentiality, integrity and availability. The CVSS vector rates the attack as network-reachable, requiring no privileges and no user interaction, but with high attack complexity. CISA lists the CVE in its Known Exploited Vulnerabilities catalog, and the description notes possible exploitation in the wild. Ubuntu rates the priority as medium.

Who is affected

The freetype source package is affected on all listed releases, and each has a fixed version. Debian 12 (bookworm): 2.12.1+dfsg-5+deb12u4. Ubuntu 22.04 LTS: 2.11.1+dfsg-1ubuntu0.3. Ubuntu 20.04 LTS: 2.10.1-2ubuntu0.4 in the standard archive. Ubuntu 18.04 LTS: 2.8.1-2ubuntu2.2+esm1, only with Ubuntu Pro (ESM). Ubuntu 16.04 LTS is end of life. Its fix, 2.6.1-0.1ubuntu2.5+esm2, is only available through Ubuntu Pro (ESM).

Written with AI from the data on this page and checked against it automatically.

Official description

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.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • FreeType
    Affected
    • ≤ 2.13.0
    Fixed in
    not stated

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

What to do

  1. Update the freetype packages to the fixed version for your release.
  2. On Ubuntu 16.04 LTS and 18.04 LTS, enable Ubuntu Pro (ESM) to receive the fix.
  3. Restart services and applications that load the FreeType library, or reboot, so they stop using the old code.
  4. Plan an upgrade of Ubuntu 16.04 LTS systems to a supported release, because that release is end of life.
  5. Treat this as urgent, because the CVE is in CISA's Known Exploited Vulnerabilities catalog.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace freetype with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="freetype"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="freetype"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-787 Out-of-bounds Write (CWE-787)

Questions about CVE-2025-27363

Is this vulnerability being exploited?
The description says it may have been exploited in the wild. CISA added it to its Known Exploited Vulnerabilities catalog on 2025-05-06. Whether it has been used in ransomware is listed as unknown.
Do I need to restart anything after updating?
Yes. Programs that already loaded the FreeType library keep running the old code until they restart. Restart affected services and applications, or reboot the system.
Which FreeType versions are vulnerable?
According to the description, FreeType 2.13.0 and earlier are vulnerable, and newer upstream versions are not. Distribution packages carry backported fixes, so check for the fixed package version listed for your release.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.