USN-9522-1: TCPDF vulnerabilities

Publication date

3 December 2026

Overview

Several security issues were fixed in TCPDF.


Packages

  • tcpdf - PHP class for generating PDF files on-the-fly

Details

It was discovered that TCPDF incorrectly handled parsing certain HTML
colors. An attacker could possibly use this issue to cause TCPDF to
consume resources, resulting in a regular expression denial of service.
This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS,
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2024-22640)

It was discovered that TCPDF incorrectly handled parsing certain SVG
files. An attacker could possibly use this issue to cause TCPDF to
consume resources, resulting in a regular expression denial of service.
(CVE-2024-22641)

It was discovered that TCPDF incorrectly handled certain HTML syntax. An
attacker could possibly use this issue to cause TCPDF to behave
unexpectedly. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS,
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (

It was discovered that TCPDF incorrectly handled parsing certain HTML
colors. An attacker could possibly use this issue to cause TCPDF to
consume resources, resulting in a regular expression denial of service.
This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS,
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2024-22640)

It was discovered that TCPDF incorrectly handled parsing certain SVG
files. An attacker could possibly use this issue to cause TCPDF to
consume resources, resulting in a regular expression denial of service.
(CVE-2024-22641)

It was discovered that TCPDF incorrectly handled certain HTML syntax. An
attacker could possibly use this issue to cause TCPDF to behave
unexpectedly. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS,
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2024-32489)

It was discovered that TCPDF incorrectly handled the src attribute of
image tags. An attacker could possibly use this issue to read arbitrary
files from the system. (CVE-2024-51058)

It was discovered that TCPDF did not properly sanitize the SVG font-family
attribute. An attacker could possibly use this issue to perform
cross-site scripting attacks. (CVE-2024-56519)

It was discovered that TCPDF incorrectly parsed certain fonts. An
attacker could possibly use this issue to cause TCPDF to crash or behave
unexpectedly. (CVE-2024-56520)

It was discovered that TCPDF did not use a constant-time comparison when
verifying TCPDF tag hashes. An attacker could possibly use this issue to
obtain sensitive information through timing attacks. (CVE-2024-56522)

It was discovered that TCPDF did not properly escape error messages. An
attacker could possibly use this issue to perform cross-site scripting
attacks. (CVE-2024-56527)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.04 LTS noble php-tcpdf –  6.7.5+dfsg-1ubuntu0.1~esm1  
22.04 LTS jammy php-tcpdf –  6.4.4+dfsg1-1ubuntu0.1~esm1  
20.04 LTS focal php-tcpdf –  6.3.5+dfsg1-1ubuntu0.1~esm1  
18.04 LTS bionic php-tcpdf –  6.2.13+dfsg-1ubuntu1+esm1  
16.04 LTS xenial php-tcpdf –  6.0.093+dfsg-1ubuntu1+esm1
14.04 LTS trusty php-tcpdf –  6.0.048+dfsg-2ubuntu0.1~esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›