USN-9522-1: TCPDF vulnerabilities

Published Dec 3, 2026
·
Updated

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)

Affected Software

12 affected componentsFixes available
All of the following
ubuntu/php-tcpdf<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/php-tcpdf<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/php-tcpdf<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/php-tcpdf<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/php-tcpdf<6.0.093+dfsg-1ubuntu1+esm1
6.0.093+dfsg-1ubuntu1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/php-tcpdf<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/php-tcpdf to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/php-tcpdf to a version that resolves this vulnerability.

    Fixed in 6.0.093+dfsg-1ubuntu1+esm1

Event History

Dec 3, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which of the reported issues are explicitly limited to specific Ubuntu releases?

The HTML color parsing issue (CVE-2024-22640) and the HTML syntax handling issue (CVE-2024-32489) are stated to affect only Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, 20.04 LTS, and 22.04 LTS. No such release limitation is stated for the SVG parsing or image src issues.

2

What kinds of content are relevant when assessing exposure?

The affected parsing paths include HTML colors, HTML syntax, image tag src attributes, SVG files, and SVG font-family attributes. Systems that process these content types with TCPDF are the relevant scope for review.

3

What are the potential impacts described for these issues?

The HTML color and SVG parsing flaws may allow resource consumption leading to regular expression denial of service. Other reported impacts include unexpected TCPDF behavior, arbitrary file reads through image src attributes, and cross-site scripting through SVG font-family handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203