# CVE-2018-17057: TCPDF vulnerable to attackers triggering deserialization of arbitrary data

Source: https://junglewise.ai/threats/cve-2018-17057-tcpdf-vulnerable-to-attackers-triggering-deserialization-of  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-06  
License: CC BY 4.0 with a link back

CVE-2018-17057 · Severity: low · CVSS 3 · Published 2022-10-06

TCPDF vulnerable to attackers triggering deserialization of arbitrary data

Technologies: [tecnickcom/tcpdf (Packagist)](https://junglewise.ai/threats/technologies/tecnickcom-tcpdf). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2018-17057 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-17057 being exploited in the wild.

**How severe is CVE-2018-17057?** Low severity, with a CVSS score of 3, published 6 October 2022.

**Which products and versions are affected?** fooman/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22; la-haute-societe/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22; spoonity/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22; tecnickcom/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22.

**Is there a fix for CVE-2018-17057?** Yes. fooman/tcpdf (Packagist): upgrade to 6.2.22 or later; la-haute-societe/tcpdf (Packagist): upgrade to 6.2.22 or later; spoonity/tcpdf (Packagist): upgrade to 6.2.22 or later; tecnickcom/tcpdf (Packagist): upgrade to 6.2.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-17057?** Check whether you run fooman/tcpdf (Packagist), la-haute-societe/tcpdf (Packagist), spoonity/tcpdf (Packagist) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- fooman/tcpdf (Packagist): upgrade to 6.2.22 or later

  ```sh
  composer require fooman/tcpdf:^6.2.22
  ```

- la-haute-societe/tcpdf (Packagist): upgrade to 6.2.22 or later

  ```sh
  composer require la-haute-societe/tcpdf:^6.2.22
  ```

- spoonity/tcpdf (Packagist): upgrade to 6.2.22 or later

  ```sh
  composer require spoonity/tcpdf:^6.2.22
  ```

- tecnickcom/tcpdf (Packagist): upgrade to 6.2.22 or later

  ```sh
  composer require tecnickcom/tcpdf:^6.2.22
  ```


## Affected products

- fooman/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22
- la-haute-societe/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22
- spoonity/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22
- tecnickcom/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.2.22

## Identifiers

- CVE-2018-17057
- GHSA-5hw4-m7f3-hhx8

## Related threats

- [TCPDF has incorrect comparison](https://junglewise.ai/threats/cve-2024-56522-tcpdf-has-incorrect-comparison)
- [TCPDF missing character escape on error messages](https://junglewise.ai/threats/cve-2024-56527-tcpdf-missing-character-escape-on-error-messages)
- [TCPDF missing certificate validation](https://junglewise.ai/threats/cve-2024-56521-tcpdf-missing-certificate-validation)
- [TCPDF lacks SVG sanitization](https://junglewise.ai/threats/cve-2024-56519-tcpdf-lacks-svg-sanitization)
- [TCPDF Local File Inclusion vulnerability](https://junglewise.ai/threats/cve-2024-51058-tcpdf-local-file-inclusion-vulnerability)
