A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-56520

CVE-2024-56520: tc-lib-pdf-font Font Parsing Vulnerability

CVE-2024-56520 is a font parsing flaw in tc-lib-pdf-font before 2.6.4 and TCPDF before 6.8.0 that causes mishandling of Type 1 and TrueType fonts. This article covers technical details, affected versions, and mitigations.

Published: May 26, 2026

CVE-2024-56520 Overview

CVE-2024-56520 affects tc-lib-pdf-font before version 2.6.4 and TCPDF before 6.8.0. The vulnerability stems from improper handling of font data, specifically the misparsing of the FontBBox value for Type 1 and TrueType fonts. Applications that accept or process untrusted font files through these libraries can trigger inconsistent parsing behavior. The flaw was addressed in tc-lib-pdf-font 2.6.4 and corresponding TCPDF releases, with Debian LTS issuing a downstream advisory in June 2025.

Critical Impact

Attackers supplying crafted Type 1 or TrueType fonts to applications using vulnerable TCPDF or tc-lib-pdf-font versions can cause input mishandling that affects confidentiality, integrity, and availability of the PDF generation workflow.

Affected Products

  • tc-lib-pdf-font before 2.6.4
  • TCPDF before 6.8.0
  • Debian distributions shipping vulnerable TCPDF packages (per Debian LTS advisory)

Discovery Timeline

  • 2024-12-27 - CVE-2024-56520 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-56520

Vulnerability Analysis

The vulnerability resides in the font import logic of tc-lib-pdf-font, used by TCPDF and other PDF generation tools. The library parses the FontBBox directive within Type 1 font definitions to derive ascent and descent metrics. The original code trimmed the matched string and split it on whitespace without normalizing the resulting tokens, then cast individual values to integers only when read. This loose parsing produced inconsistent internal state when font files contained unexpected whitespace, extra tokens, or malformed bounding-box values. The same class of mishandling extended to TrueType font processing through the addTTFfont routine in TCPDF.

Root Cause

The defect is an input validation error in font metric extraction. The FontBBox value is treated as trusted, structured input even though it originates from font files that may be attacker-controlled. Because the array elements were not validated and the bounding-box string was not normalized before storage, downstream PDF generation relied on values that did not match the parsed numeric form.

Attack Vector

An attacker delivers a crafted Type 1 or TrueType font to a server-side or client-side application that uses TCPDF or tc-lib-pdf-font to render PDF output. The attack surface includes web applications that accept user-uploaded fonts, PDF templating services that embed third-party fonts, and any pipeline that calls addTTFfont on untrusted files. No authentication or user interaction is required when the font ingestion path is exposed to network input.

php
// Patch in src/Import/TypeOne.php - Improved parsing of TypeOne FontBBox
        $this->fdt['name'] = $name;
        preg_match('#/FontBBox[\s]*+{([^}]*+)#', $this->font, $matches);
-        $this->fdt['bbox'] = trim($matches[1]);
-        $bvl = explode(' ', $this->fdt['bbox']);
-        $this->fdt['Ascent'] = (int) $bvl[3];
-        $this->fdt['Descent'] = (int) $bvl[1];
+        $rawbvl = explode(' ', trim($matches[1]));
+        $bvl = [(int) $rawbvl[0], (int) $rawbvl[1], (int) $rawbvl[2], (int) $rawbvl[3]];
+        $this->fdt['bbox'] = implode(' ', $bvl);
+        $this->fdt['Ascent'] = $bvl[3];
+        $this->fdt['Descent'] = $bvl[1];
        preg_match('#/ItalicAngle[\s]*+([0-9\+\-]*+)#', $this->font, $matches);
        $this->fdt['italicAngle'] = (int) $matches[1];

Source: tc-lib-pdf-font commit 30012e3. The patch normalizes each FontBBox element to an integer before assembling the bounding box and assigning Ascent and Descent.

Detection Methods for CVE-2024-56520

Indicators of Compromise

  • Application logs showing PDF generation errors or font import warnings tied to addTTFfont or Type 1 font loading.
  • User-uploaded .ttf, .otf, or .pfa files with malformed or unusual FontBBox directives.
  • Crash reports or PHP exceptions originating from tc-lib-pdf-font import classes when processing untrusted fonts.

Detection Strategies

  • Inventory PHP applications and identify dependencies on TCPDF or tc-lib-pdf-font through composer.lock files and vendor directories.
  • Compare installed versions against TCPDF 6.8.0 and tc-lib-pdf-font 2.6.4 as the minimum fixed releases.
  • Review code paths that pass user-supplied font files into TCPDF::addTTFfont() or related import functions.

Monitoring Recommendations

  • Log all font ingestion events including source IP, filename, and file hash for upload-driven PDF generation endpoints.
  • Alert on repeated PDF generation failures from a single source, which may indicate fuzzing of font parsing logic.
  • Track outbound network activity from PHP workers that process untrusted fonts to detect anomalous post-exploitation behavior.

How to Mitigate CVE-2024-56520

Immediate Actions Required

  • Upgrade tc-lib-pdf-font to version 2.6.4 or later.
  • Upgrade TCPDF to version 6.8.0 or later in all applications and shared hosting environments.
  • Apply the Debian LTS update referenced in the Debian LTS announcement for affected distributions.
  • Audit application endpoints that accept font files from untrusted users and restrict them where possible.

Patch Information

The upstream fix is published in the tc-lib-pdf-font 2.6.2 to 2.6.4 comparison and incorporated into TCPDF via the TCPDF 6.7.8 to 6.8.0 comparison. The TCPDF changelog entry is recorded in commit a0a02ef and notes the addition of addTTFfont fixes ported from tc-lib-pdf-font. Refer to the TCPDF official website for downloads and release notes.

Workarounds

  • Restrict font uploads to a curated allowlist of internally vetted font files.
  • Reject font submissions that do not match expected MIME types and structural validation before passing them to TCPDF.
  • Run PDF generation workers in isolated containers with minimal filesystem and network privileges to limit the blast radius of font parsing faults.
bash
# Update via Composer to the fixed releases
composer require tecnickcom/tcpdf:^6.8.0
composer require tecnickcom/tc-lib-pdf-font:^2.6.4

# Debian / Ubuntu package update
sudo apt-get update
sudo apt-get install --only-upgrade libtcpdf-php

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechTc Lib Pdf Font

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • Technical References
  • GitHub TCPDF Commit

  • GitHub TCPDF Version Comparison

  • GitHub TC Lib PDF Font Commit

  • GitHub TC Lib PDF Font Comparison

  • TCPDF Official Website

  • Debian LTS Announcement
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English