# CVE-2024-22640: TCPDF vulnerable to Regular Expression Denial of Service

Source: https://junglewise.ai/threats/cve-2024-22640-tcpdf-vulnerable-to-regular-expression-denial-of-service  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-04-19  
License: CC BY 4.0 with a link back

CVE-2024-22640 · Severity: medium · CVSS 4 · Published 2024-04-19

TCPDF vulnerable to Regular Expression Denial of Service

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

## Quick answers

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

**How severe is CVE-2024-22640?** Medium severity, with a CVSS score of 4, published 19 April 2024.

**Which products and versions are affected?** tecnickcom/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.7.5.

**Is there a fix for CVE-2024-22640?** Yes. tecnickcom/tcpdf (Packagist): upgrade to 6.7.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-22640?** Check whether you run tecnickcom/tcpdf (Packagist) 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

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

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


## Affected products

- tecnickcom/tcpdf (Packagist) ECOSYSTEM:introduced=0,fixed=6.7.5

## Identifiers

- CVE-2024-22640
- GHSA-mx3p-fhpw-x6rv

## 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)
