CVE-2025-27363
JSON

8.1highExploited

FreeType Out-of-Bounds Write Vulnerability

Severity
8.1high CVSS:3.1 by facebook
Exploit likelihood
27.8% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
facebook

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.

Affected

Product or packageVersionsReported by
FreeType FreeTypefrom 0.0.0 up to 2.13.0, up to 2.13.0CVE List, NVD, CISA KEV
debian debian_linux11.0NVD

All scores

facebook8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C/CR:H/IR:H/AR:H/MAV:N/MAC:L/MPR:N/MUI:N/MS:U/MC:H/MI:H/MA:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation active, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Existe una escritura fuera de los límites en las versiones 2.13.0 y anteriores de FreeType al intentar analizar estructuras de subglifos de fuentes relacionadas con archivos de fuentes TrueType GX y variables. El código vulnerable asigna un valor short con signo a un long sin signo y luego añade un valor estático, lo que provoca un bucle y asigna un búfer de montón demasiado pequeño. El código escribe entonces hasta 6 enteros long con signo fuera de los límites en relación con este búfer. Esto puede provocar la ejecución de código arbitrario. Esta vulnerabilidad podría haber sido explotada in situ.

CISA KEV

FreeType contains an out-of-bounds write vulnerability when attempting to parse font subglyph structures related to TrueType GX and variable font files that may allow for arbitrary code execution.

References

https://www.facebook.com/security/advisories/cve-2025-27363third-party-advisory
https://source.android.com/docs/security/bulletin/2025-05-01kev, third-party-advisory, vendor-advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-27363government-resource, us-government-resource
http://www.openwall.com/lists/oss-security/2025/03/13/1mailing-list
http://www.openwall.com/lists/oss-security/2025/03/13/2mailing-list
http://www.openwall.com/lists/oss-security/2025/03/13/3mailing-list
http://www.openwall.com/lists/oss-security/2025/03/13/8mailing-list
http://www.openwall.com/lists/oss-security/2025/03/13/11mailing-list
http://www.openwall.com/lists/oss-security/2025/03/13/12mailing-list
http://www.openwall.com/lists/oss-security/2025/03/14/1mailing-list
http://www.openwall.com/lists/oss-security/2025/03/14/2mailing-list
http://www.openwall.com/lists/oss-security/2025/03/14/3mailing-list

Sources

SourceRecordLicence
CVE ListCVE-2025-27363 changed 2026-04-19CVE Terms of Use
NVDCVE-2025-27363 changed 2026-06-17Public domain
CISA KEVCVE-2025-27363 changed 2025-05-06CC0-1.0