Cloudanix VulnDB

CVE-2022-27405

High · 7.5

CVSS

7.5

EPSS

2.8%

Published

Apr 22, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in a widely used font library can let attackers take over a computer simply by making it open a specially made document or webpage.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

Heap buffer overflow in FreeType font parsing routines caused by insufficient bounds validation when processing malformed TrueType or OpenType font data structures.

Why it matters to the business

Applications that render user-supplied or untrusted fonts may crash or allow arbitrary code execution, exposing desktop, server, and embedded systems to compromise through document viewers, browsers, and print services that depend on the library.

How an attack unfolds

An attacker supplies a specially crafted font file containing oversized or malformed tables; when the vulnerable FreeType instance loads and parses the file, the overflow occurs on the heap, enabling control-flow hijacking or memory corruption that can lead to code execution within the host process.

How to fix it

Upgrade FreeType to the commit e50798b72043c8b378caa46e0a854519f9028ae4 or later; rebuild and redeploy all dependent applications and libraries; where immediate patching is not feasible, isolate or sandbox font-processing components.

How to confirm the fix worked

Confirm the installed FreeType binary or source matches or exceeds commit e50798b72043c8b378caa46e0a854519f9028ae4; run regression test suites against known-malformed font samples; monitor build pipelines for the updated library version.

Typical attack path

  1. Identify or craft a malicious font file that triggers the overflow condition in sfnt/ttload or related parsing code
  2. Deliver the font via a document, web page, or application that uses FreeType to render text
  3. Trigger font loading and parsing in the target process
  4. Leverage the resulting heap corruption to execute attacker-controlled code or cause denial of service

How to detect it

Review application logs and crash reports for segmentation faults or heap corruption during font loading; inspect process memory dumps or audit trails for unexpected font file handling; correlate with file-creation or download events involving .ttf or .otf files.

What your security team should do

  • Prioritize patching of internet-facing systems and any service that processes untrusted documents or fonts
  • Inventory all products and containers that statically or dynamically link FreeType and schedule upgrades
  • Apply least-privilege sandboxing around font-rendering code paths until patches are deployed
  • Update vulnerability management dashboards with the fixed commit hash to track closure

The record

FreeType commit 53dfdcd8198d2b3201a23c4bad9190519ba918db was discovered to contain a segmentation violation via the function FNT_Size_Request.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 freetype 0 2.9.1-9.el8
AlmaLinux:8 freetype-devel 0 2.9.1-9.el8
AlmaLinux:9 freetype 0 2.10.4-9.el9
AlmaLinux:9 freetype-devel 0 2.10.4-9.el9
Alpine:v3.12 freetype 0 2.10.4-r2
Alpine:v3.13 freetype 0 2.10.4-r3
Alpine:v3.14 freetype 0 2.10.4-r3
Alpine:v3.15 freetype 0 2.11.1-r2
Alpine:v3.16 freetype 0 2.12.1-r0
Alpine:v3.17 freetype 0 2.12.1-r0
Alpine:v3.18 freetype 0 2.12.1-r0
Alpine:v3.19 freetype 0 2.12.1-r0
Alpine:v3.20 freetype 0 2.12.1-r0
Alpine:v3.21 freetype 0 2.12.1-r0
Alpine:v3.22 freetype 0 2.12.1-r0
Android platform/external/freetype 11:0 11:2023-07-01
Android platform/external/freetype 12:0 12:2023-07-01
Android platform/external/freetype 12L:0 12L:2023-07-01
Android platform/external/freetype 13:0 13:2023-07-01
Chainguard freetype 0 0
Chainguard freetype-dev 0 0
Chainguard freetype-doc 0 0
Chainguard freetype-static 0 0
Debian:11 freetype 0 2.10.4+dfsg-1+deb11u1
Debian:12 freetype 0 2.11.1+dfsg-2
Debian:13 freetype 0 2.11.1+dfsg-2
Debian:14 freetype 0 2.11.1+dfsg-2
Mageia:8 freetype2 0 2.10.4-2.1.mga8
Mageia:8 freetype2 0 2.10.4-2.1.mga8.tainted
Red Hat:enterprise_linux:8::baseos freetype 0 0:2.9.1-9.el8
Red Hat:enterprise_linux:8::baseos freetype-debuginfo 0 0:2.9.1-9.el8
Red Hat:enterprise_linux:8::baseos freetype-debugsource 0 0:2.9.1-9.el8
Red Hat:enterprise_linux:8::baseos freetype-demos-debuginfo 0 0:2.9.1-9.el8
Red Hat:enterprise_linux:8::baseos freetype-devel 0 0:2.9.1-9.el8
Red Hat:enterprise_linux:9::appstream freetype 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::appstream freetype-debuginfo 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::appstream freetype-debugsource 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::appstream freetype-demos-debuginfo 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::appstream freetype-devel 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::baseos freetype 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::baseos freetype-debuginfo 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::baseos freetype-debugsource 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::baseos freetype-demos-debuginfo 0 0:2.10.4-9.el9
Red Hat:enterprise_linux:9::baseos freetype-devel 0 0:2.10.4-9.el9
Red Hat:rhel_eus:8.6::baseos freetype 0 0:2.9.1-5.el8_6.3
Red Hat:rhel_eus:8.6::baseos freetype-debuginfo 0 0:2.9.1-5.el8_6.3
Red Hat:rhel_eus:8.6::baseos freetype-debugsource 0 0:2.9.1-5.el8_6.3
Red Hat:rhel_eus:8.6::baseos freetype-demos-debuginfo 0 0:2.9.1-5.el8_6.3
Red Hat:rhel_eus:8.6::baseos freetype-devel 0 0:2.9.1-5.el8_6.3
Rocky Linux:8 freetype 0 0:2.9.1-9.el8
Rocky Linux:9 freetype 0 0:2.10.4-9.el9
SUSE:Enterprise Storage 6 freetype2 0 2.10.4-150000.4.12.1
SUSE:Enterprise Storage 7 freetype2 0 2.10.4-150000.4.12.1
SUSE:Enterprise Storage 7 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Micro 5.1 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Micro 5.2 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP1-BCL freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP1-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP2-BCL freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP2-BCL ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP2-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15 SP2-LTSS ft2demos 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server 15-LTSS freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 freetype2 0 2.10.4-150000.4.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Manager Proxy 4.1 freetype2 0 2.10.4-150000.4.12.1
SUSE:Manager Proxy 4.1 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Manager Retail Branch Server 4.1 freetype2 0 2.10.4-150000.4.12.1
SUSE:Manager Retail Branch Server 4.1 ft2demos 0 2.10.4-150000.4.12.1
SUSE:Manager Server 4.1 freetype2 0 2.10.4-150000.4.12.1
SUSE:Manager Server 4.1 ft2demos 0 2.10.4-150000.4.12.1
Ubuntu:18.04:LTS freetype 0 2.8.1-2ubuntu2.2
Ubuntu:20.04:LTS freetype 0 2.10.1-2ubuntu0.2
Ubuntu:22.04:LTS freetype 0 2.11.1+dfsg-1ubuntu0.1
Wolfi freetype 0 0
Wolfi freetype-dev 0 0
Wolfi freetype-doc 0 0
Wolfi freetype-static 0 0
openSUSE:Leap 15.3 freetype2 0 2.10.4-150000.4.12.1
openSUSE:Leap 15.3 ft2demos 0 2.10.4-150000.4.12.1
openSUSE:Leap 15.4 freetype2 0 2.10.4-150000.4.12.1
openSUSE:Leap 15.4 ft2demos 0 2.10.4-150000.4.12.1
openSUSE:Leap Micro 5.2 freetype2 0 2.10.4-150000.4.12.1

Related vulnerabilities