CVE-2025-27363: FreeType Out-of-Bounds Write Vulnerability
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.
Other sources
An out of bounds write exists in FreeType versions 2.13.0 and below 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.
— Red Hat
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.
— CISA
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Information
Event History
Frequently Asked Questions
What is the severity of CVE-2025-27363?
CVE-2025-27363 is rated as a high severity vulnerability due to the potential for remote code execution or crashes.
How do I fix CVE-2025-27363?
To fix CVE-2025-27363, upgrade FreeType to version 2.13.1 or later to mitigate the out of bounds write issue.
What versions of FreeType are affected by CVE-2025-27363?
CVE-2025-27363 affects FreeType versions 2.13.0 and below.
What type of vulnerability is CVE-2025-27363?
CVE-2025-27363 is an out of bounds write vulnerability that occurs when parsing certain font structures.
What are the potential impacts of CVE-2025-27363?
If exploited, CVE-2025-27363 could lead to application crashes or execution of arbitrary code on affected systems.