USN-9522-1: TCPDF vulnerabilities
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/php-tcpdfto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/php-tcpdfto a version that resolves this vulnerability.Fixed in 6.0.093+dfsg-1ubuntu1+esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
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.
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.
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.