CVE-2025-27363
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.
Summary dbcve.org
FreeType versions 2.13.0 and below contain an out-of-bounds write vulnerability when parsing TrueType GX and variable font subglyph structures. The vulnerability stems from a signed short value being assigned to an unsigned long and then added with a static value, causing integer wraparound that results in an undersized heap buffer allocation. The code then writes up to 6 signed long integers out of bounds, potentially allowing arbitrary code execution.
Mitigation
Upgrade FreeType to a version newer than 2.13.0. Since this vulnerability may have been exploited in the wild and has high severity, priority should be given to patching vulnerable systems immediately.