CVE DatabaseCVE-2025-27363
한국어 권고문 →
CVE-2025-273638.1/HIGHCISA KEVCWE-787

FreeType Heap Out-of-Bounds Write Vulnerability (CVE-2025-27363) Security Advisory

⚡ Jump to Patch
Affected Vendors
freetype
Affected Components
freetype
Published Date
2025-03-11
CVSS v3.1
8.1
HIGH
EPSS (30d)
27.8%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

FreeType versions 2.13.0 and below

Impact

Heap buffer overflow during TrueType GX and variable font parsing, potentially leading to arbitrary code execution (RCE) with active in-the-wild exploitation detected

Mitigation

Immediately upgrade FreeType to a non-vulnerable version (2.13.1 or newer)

Affected Products & Version Scope

FreeType versions 2.13.0 and below (when parsing TrueType GX and variable fonts)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Upgrade the FreeType library to version 2.13.1 or higher using your system's package manager.

bash
# For Debian/Ubuntu-based systems
sudo apt-get update && sudo apt-get install --only-upgrade libfreetype6 -y

# For RedHat/CentOS/Rocky Linux-based systems
sudo dnf upgrade freetype -y

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, restrict the processing of untrusted external fonts, particularly TrueType GX and variable fonts. Disable remote font downloading in web browsers and application runtimes.

bash
# Block untrusted user-space fonts using Fontconfig rules
cat << 'EOF' > /etc/fonts/local.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <!-- Reject fonts loaded from untrusted user directories -->
  <selectfont>
    <rejectfont>
      <glob>~/.fonts/*</glob>
    </rejectfont>
  </selectfont>
</fontconfig>
EOF
fc-cache -f -v

3. Log Audit & IoC Verification Commands

Verify the installed version of FreeType on your systems to identify vulnerable deployments.

bash
# Check the installed FreeType version on Linux systems
if command -v dpkg >/dev/null 2>&1; then
  dpkg -l | grep libfreetype
elif command -v rpm >/dev/null 2>&1; then
  rpm -qa | grep freetype
else
  echo 'Package manager not found. Checking shared library files directly:'
  ls -la /usr/lib/*/libfreetype.so* 2>/dev/null || ls -la /usr/lib64/libfreetype.so*
fi
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Due to active exploitation in the wild, immediately update FreeType across all operating systems and container images.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2025-27363) is a critical heap-based out-of-bounds write (CWE-787) in FreeType, a widely used open-source font rendering engine. The root cause lies within the parsing logic of font subglyph structures associated with TrueType GX and variable font files. The vulnerable code assigns a signed short value to an unsigned long variable and subsequently adds a static value. This arithmetic operation triggers an integer wrap-around, leading to the allocation of an inadequately sized heap buffer.

2. Exploitation Mechanics & Attack Scenario

An attacker can exploit this vulnerability by crafting a malicious TrueType GX or variable font file and forcing the target application to parse it. When FreeType processes the subglyph data of this malformed font, the wrap-around condition causes the engine to allocate a heap buffer that is too small. The parser then writes up to six signed long integers out of bounds relative to this undersized buffer. This memory corruption allows attackers to overwrite adjacent heap structures, hijack the execution flow, and achieve arbitrary code execution (RCE). Evidence indicates this vulnerability has been actively exploited in the wild.

3. Infrastructure & Business Impact

Because FreeType is embedded in numerous operating systems (including Linux and Android), web browsers, and document rendering suites, the attack surface is exceptionally broad. A successful exploit could compromise endpoints or servers simply by rendering a malicious font on a webpage or within a document. Given its inclusion in the CISA KEV catalog, failure to patch poses an immediate threat of system compromise, lateral movement, and potential data exfiltration.

Official Vendor Advisories & References

NVD Original English 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.

Frequently Asked SecOps Questions (CVE-2025-27363)

FAQ

Q1. How critical is CVE-2025-27363 and is it actively exploited in the wild?

CVE-2025-27363 is rated CVSS 8.1 (HIGH) with a 30-day EPSS exploitation probability of 27.8%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2025-27363?

Primary impacted vendors include freetype across freetype. Scope summary: FreeType versions 2.13.0 and below (when parsing TrueType GX and variable fonts)

Q3. What temporary mitigations or workarounds exist for CVE-2025-27363 before patching?

[Mitigation] Immediately upgrade FreeType to a non-vulnerable version (2.13.1 or newer) Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2025-27363

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (freetype)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2025-27363 FreeType Heap Out-of-Bounds Write Vulnerability (CVE-2025-27363) Security Advisory (CVSS 8.1) - Patch & Workaround | CVE Pulse