Description
An issue was discovered in TCPDF before 6.2.22. Attackers can trigger deserialization of arbitrary data via the phar:// wrapper.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tcpdf | 6.2.26+dfsg-1 | — |
| Debian 13 | tcpdf | 6.2.26+dfsg-1 | — |
| Debian 12 | tcpdf | 6.2.26+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | tcpdf | No fix yet | — |
| Ubuntu 20.04 LTS | tcpdf | No fix yet | — |
| Ubuntu 18.04 LTS | tcpdf | No fix yet | — |
| Ubuntu 16.04 LTS | tcpdf | No fix yet | — |
| Ubuntu 14.04 LTS | tcpdf | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- LimeSurvey < 3.16 - Remote Code Execution EDB-46634 · webapps · Apr 2, 2019
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | fooman/tcpdf | < 6.2.22 | 6.2.22 | GHSA-5hw4-m7f3-hhx8 |
| Packagist | la-haute-societe/tcpdf | < 6.2.22 | 6.2.22 | GHSA-5hw4-m7f3-hhx8 |
| Packagist | spoonity/tcpdf | < 6.2.22 | 6.2.22 | GHSA-5hw4-m7f3-hhx8 |
| Packagist | tecnickcom/tcpdf | < 6.2.22 | 6.2.22 | GHSA-5hw4-m7f3-hhx8 |
References
- https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed
- 20190322 CVE-2018-17057: phar deserialization in TCPDF might lead to RCE mailing-list
- http://packetstormsecurity.com/files/152200/TCPDF-6.2.19-Deserialization-Remote-Code-Execution.html
- https://github.com/LimeSurvey/LimeSurvey/commit/1cdd78d27697b3150bb44aaa7af1a81062a591a5
- 46634 exploit
- http://packetstormsecurity.com/files/152360/LimeSurvey-Deserialization-Remote-Code-Execution.html
- https://contao.org/en/news/security-vulnerability-cve-2018-17057.html