CVE-2018-17057 — Vulnerability in la-haute-societe/tcpdf — CVE Details
TCPDF vulnerable to attackers triggering deserialization of arbitrary data
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.
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 require "la-haute-societe/tcpdf:^6.2.22"
composer require "fooman/tcpdf:^6.2.22"
composer require "spoonity/tcpdf:^6.2.22"
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).
| Package | Fixed 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-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-17057ADVISORY
- https://github.com/LimeSurvey/LimeSurvey/commit/1cdd78d27697b3150bb44aaa7af1a81062a591a5WEB
- https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26edWEB
- https://contao.org/en/news/security-vulnerability-cve-2018-17057.htmlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/fooman/tcpdf/CVE-2018-17057.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/la-haute-societe/tcpdf/CVE-2018-17057.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/spoonity/tcpdf/CVE-2018-17057.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/tecnickcom/tcpdf/CVE-2018-17057.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/wallabag/tcpdf/CVE-2018-17057.yamlWEB
- https://github.com/tecnickcom/TCPDFPACKAGE
- https://www.exploit-db.com/exploits/46634WEB
- https://packetstormsecurity.com/files/152200/TCPDF-6.2.19-Deserialization-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/152360/LimeSurvey-Deserialization-Remote-Code-Execution.htmlWEB
- https://seclists.org/fulldisclosure/2019/Mar/36WEB
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
Maximum impact if exploited, often with little effort or access required.
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
Related CVEs
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2024-56521HIGH
TCPDF missing certificate validation
- CVE-2024-56522HIGH
TCPDF has incorrect comparison
- CVE-2024-56519MEDIUM
TCPDF lacks SVG sanitization
- CVE-2024-32489MEDIUM
TCPDF Cross-site Scripting vulnerability
- CVE-2024-22640MEDIUM
TCPDF vulnerable to Regular Expression Denial of Service
- CVE-2024-56527MEDIUM
TCPDF missing character escape on error messages
- CVE-2024-51058MEDIUM
TCPDF Local File Inclusion vulnerability