Critical Security Update for tcpdf: Addressing Multiple Vulnerabilities

tcpdf Updated 02 Oct 2025

Summary

01/06/2025
N/A
Yes i
Unrated
Not published

DSA-5933-1: tcpdf - security update. Affects tcpdf versions < 6.6.2+dfsg1-1+deb12u1. Fixed in 6.6.2+dfsg1-1+deb12u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

tcpdf is a popular PHP library used for generating PDF documents. It is widely utilized in various web applications due to its ease of use and extensive features, including support for various fonts, images, and complex layouts. However, tcpdf has been found to have several security vulnerabilities that could potentially compromise the integrity and confidentiality of documents generated by the library.

Vulnerability Detail

The vulnerabilities identified in tcpdf include several critical issues such as improper input validation and insufficient sanitization of user inputs. These flaws could allow an attacker to execute arbitrary code, leading to unauthorized access to sensitive information or even complete system compromise. The vulnerabilities are tracked under multiple CVE identifiers, including CVE-2024-22640 and CVE-2024-56527, among others.

How To Fix

Minimum fixed version

6.6.2+dfsg1-1+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tcpdf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider implementing input validation and sanitization in your application code to minimize the risk of exploitation. Ensure that any user inputs are properly validated before being processed by tcpdf.

Conclusion

In summary, the tcpdf library has several critical vulnerabilities that need to be addressed promptly. Users are advised to update to the latest version to ensure the security of their applications. Implementing best practices for input validation can also help mitigate risks in the meantime.

See every vulnerability recorded for tcpdf →

Share this vulnerability

FAQ

tcpdf is a PHP library for generating PDF documents, widely used in web applications.

The vulnerabilities can lead to unauthorized access, data breaches, and potential system compromise.

You can use Vulert's playground at Vulert Scanner to check for vulnerabilities in your application without any signup.

Implement input validation and sanitization in your application to reduce the risk of exploitation until you can update.

Detailed information about the vulnerabilities can be found in the official Debian security advisory DSA-5933-1.

Related vulnerabilities

Recent vulnerabilities recorded for tcpdf.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.6.2+dfsg1-1+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tcpdf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback