Skip to main content

CVE-2018-17057 — Vulnerability in la-haute-societe/tcpdf — CVE Details

CRITICAL

TCPDF vulnerable to attackers triggering deserialization of arbitrary data

Published October 6, 2022Updated February 16, 2024Source: OSV

What Should I Do?

Low-to-Moderate Risk

Exploitation probability is 25.87% in 30 days. Address in your next planned sprint.

Does your project use an affected la-haute-societe/tcpdf version?

Paste your composer.lock to check it for CVE-2018-17057 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

An issue was discovered in TCPDF before 6.2.22. Attackers can trigger deserialization of arbitrary data via the phar:// wrapper.

Advisory Timeline

  • First published October 6, 2022 (1513 days ago).
  • Last revised February 16, 2024 — 498 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update la-haute-societe/tcpdf to 6.2.22 or later
composer require "la-haute-societe/tcpdf:^6.2.22"
Composer
Update fooman/tcpdf to 6.2.22 or later
composer require "fooman/tcpdf:^6.2.22"
Composer
Update spoonity/tcpdf to 6.2.22 or later
composer require "spoonity/tcpdf:^6.2.22"
Composer
Update tecnickcom/tcpdf to 6.2.22 or later
composer require "tecnickcom/tcpdf:^6.2.22"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Packagist (4).

PackageFixed In
la-haute-societe/tcpdf Packagist · Affected: 6.0.013, 6.0.014, 6.0.015, 6.0.016 (+100 more)6.2.22
fooman/tcpdf Packagist · Affected: 6.0.013, 6.0.014, 6.0.015, 6.0.016 (+99 more)6.2.22
spoonity/tcpdf Packagist · Affected: 6.0.013, 6.0.014, 6.0.015, 6.0.016 (+98 more)6.2.22
tecnickcom/tcpdf Packagist · Affected: 6.0.013, 6.0.014, 6.0.015, 6.0.016 (+104 more)6.2.22

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2018-17057?
TCPDF vulnerable to attackers triggering deserialization of arbitrary data. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-17057?
CVE-2018-17057 affects la-haute-societe/tcpdf, fooman/tcpdf and spoonity/tcpdf (and 1 more). It has a 25.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-17057 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
25.87%
EPSS percentile: 98.4

This places it in the top 5% of EPSS-scored vulnerabilities — 98.4% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Also Known As

GHSA-5hw4-m7f3-hhx8

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock