Cloudanix VulnDB

CVE-2017-8287

Critical · 9.8

CVSS

9.8

EPSS

3.6%

Published

Apr 27, 2017

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A bug in widely used font software could let attackers take over a computer simply by making it open a specially made font file.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-based buffer overflow in t1_builder_close_contour leading to out-of-bounds write and memory corruption during Type 1 font parsing in FreeType.

Why it matters to the business

Remote code execution risk in any application or service that renders fonts with the vulnerable FreeType library, potentially disrupting document processing, web applications, and desktop environments; older affected packages like Moodle require prompt updates to avoid exposure.

How an attack unfolds

An attacker supplies a specially crafted Type 1 font file that triggers the buffer overflow when FreeType parses the contour data; successful exploitation can lead to arbitrary code execution in the context of the parsing process with no authentication required.

How to fix it

Upgrade FreeType to commit 3774fc08b502c3e685afca098b6e8a195aded6a0 or later; for affected Moodle (Bitnami) deployments upgrade to version 3.5.18 or newer; rebuild or redeploy any packages statically linking the vulnerable library.

How to confirm the fix worked

Verify FreeType library version or commit hash against the fixed reference; recompile test applications with the updated library and confirm absence of the overflow condition using memory safety tools or known triggering fonts.

Typical attack path

  1. Craft malicious Type 1 font triggering t1_builder_close_contour overflow
  2. Deliver font via web page, document attachment, or application asset
  3. Victim application or service loads and parses the font using vulnerable FreeType
  4. Memory corruption occurs enabling code execution or crash

How to detect it

Search application and system logs for crashes or segmentation faults in processes linked against FreeType when handling font files; inspect memory dumps or core files for heap corruption patterns around psaux/psobjs.c processing.

What your security team should do

  • Immediately update FreeType and dependent products to the listed fixed versions
  • Inventory all systems and containers using FreeType for font rendering
  • Prioritize patching in internet-facing or document-processing workloads
  • Monitor vendor advisories for downstream libraries that embed FreeType

The record

FreeType 2 before 2017-03-26 has an out-of-bounds write caused by a heap-based buffer overflow related to the t1_builder_close_contour function in psaux/psobjs.c.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 freetype 0 2.7.1-r1
Alpine:v3.11 freetype 0 2.7.1-r1
Alpine:v3.12 freetype 0 2.7.1-r1
Alpine:v3.13 freetype 0 2.7.1-r1
Alpine:v3.14 freetype 0 2.7.1-r1
Alpine:v3.15 freetype 0 2.7.1-r1
Alpine:v3.16 freetype 0 2.7.1-r1
Alpine:v3.17 freetype 0 2.7.1-r1
Alpine:v3.18 freetype 0 2.7.1-r1
Alpine:v3.19 freetype 0 2.7.1-r1
Alpine:v3.2 freetype 0 2.5.5-r1
Alpine:v3.20 freetype 0 2.7.1-r1
Alpine:v3.21 freetype 0 2.7.1-r1
Alpine:v3.22 freetype 0 2.7.1-r1
Alpine:v3.3 freetype 0 2.6.3-r0
Alpine:v3.4 freetype 0 2.6.3-r1
Alpine:v3.5 freetype 0 2.7.1-r1
Alpine:v3.6 freetype 0 2.7.1-r1
Alpine:v3.7 freetype 0 2.7.1-r1
Alpine:v3.8 freetype 0 2.7.1-r1
Alpine:v3.9 freetype 0 2.7.1-r1
Debian:11 freetype 0 2.6.3-3.2
Debian:12 freetype 0 2.6.3-3.2
Debian:13 freetype 0 2.6.3-3.2
Debian:14 freetype 0 2.6.3-3.2
Debian:7 freetype 0 2.4.9-1.1+deb7u7
Debian:8 freetype 0 2.5.2-3+deb8u2
Mageia:5 freetype2 0 2.5.4-2.3.mga5
Mageia:5 freetype2 0 2.5.4-2.3.mga5.tainted
SUSE:Linux Enterprise Desktop 12 SP2 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Desktop 12 SP2 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Desktop 12 SP3 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Desktop 12 SP3 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server 11 SP4 freetype2 0 2.3.7-25.45.5.1
SUSE:Linux Enterprise Server 11 SP4 ft2demos 0 2.3.7-25.45.5.1
SUSE:Linux Enterprise Server 12 SP2 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server 12 SP2 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server 12 SP3 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server 12 SP3 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 freetype2 0 2.3.7-25.45.5.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ft2demos 0 2.3.7-25.45.5.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 ft2demos 0 2.6.3-7.15.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 freetype2 0 2.3.7-25.45.5.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 freetype2 0 2.6.3-7.15.1
SUSE:Linux Enterprise Software Development Kit 12 SP3 freetype2 0 2.6.3-7.15.1
Ubuntu:14.04:LTS freetype 0 2.5.2-1ubuntu2.8
Ubuntu:16.04:LTS freetype 0 2.6.1-0.1ubuntu2.3

Related vulnerabilities