{"id":"CVE-2018-17057","published":"2018-09-14T20:00:00Z","modified":"2024-08-05T10:39:59Z","title":"An issue was discovered in TCPDF before 6.2.22","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in TCPDF before 6.2.22. Attackers can trigger deserialization of arbitrary data via the phar:// wrapper.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.25871,"percentile":0.98023,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2019/Mar/36","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/152200/TCPDF-6.2.19-Deserialization-Remote-Code-Execution.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/LimeSurvey/LimeSurvey/commit/1cdd78d27697b3150bb44aaa7af1a81062a591a5","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46634/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://packetstormsecurity.com/files/152360/LimeSurvey-Deserialization-Remote-Code-Execution.html","tags":["x_refsource_MISC"]},{"url":"https://contao.org/en/news/security-vulnerability-cve-2018-17057.html","tags":["x_refsource_MISC"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":19.6},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-04-02"},"first":{"date":"2019-04-02","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/46634"},"provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"tecnickcom/tcpdf","vulnerableRanges":["<6.2.22"],"patched":["6.2.22"],"from":["GHSA-5hw4-m7f3-hhx8"],"provenance":"source"},{"ecosystem":"Packagist","package":"fooman/tcpdf","vulnerableRanges":["<6.2.22"],"patched":["6.2.22"],"from":["GHSA-5hw4-m7f3-hhx8"],"provenance":"source"},{"ecosystem":"Packagist","package":"la-haute-societe/tcpdf","vulnerableRanges":["<6.2.22"],"patched":["6.2.22"],"from":["GHSA-5hw4-m7f3-hhx8"],"provenance":"source"},{"ecosystem":"Packagist","package":"spoonity/tcpdf","vulnerableRanges":["<6.2.22"],"patched":["6.2.22"],"from":["GHSA-5hw4-m7f3-hhx8"],"provenance":"source"}],"summary":{"text":"The flaw is in TCPDF, the PHP library for generating PDF documents, in versions before 6.2.22. It allows deserialization of arbitrary data through the phar:// stream wrapper. An attacker can trigger the deserialization of attacker-controlled data via the phar:// wrapper.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:12Z"},"euvd":{"id":"EUVD-2022-7027","exploited":false,"provenance":"source"},"exploits":[{"id":46634,"url":"https://www.exploit-db.com/exploits/46634","title":"LimeSurvey < 3.16 - Remote Code Execution","date":"2019-04-02","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/46634/","http://packetstormsecurity.com/files/152200/TCPDF-6.2.19-Deserialization-Remote-Code-Execution.html","http://packetstormsecurity.com/files/152360/LimeSurvey-Deserialization-Remote-Code-Execution.html","https://www.exploit-db.com/exploits/46634"],"lineage":{"familyId":"fam-tecnick-tcpdf-cve-2018-17057","children":[{"from":"CVE-2018-17057","to":"CVE-2024-32489","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["include/tcpdf_fonts.php","include/tcpdf_static.php","tcpdf.php"],"commits":["https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed","https://github.com/tecnickcom/TCPDF/commit/51cd1b39de5643836e62661d162c472d63167df7","https://github.com/tecnickcom/TCPDF/commit/82fc97bf1c74c8dbe62b1d3cc6d10fa4b87e0262"],"basis":"shared function","functions":["AddFont","TCPDF_STATIC"]}]},{"from":"CVE-2018-17057","to":"CVE-2024-51058","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["include/tcpdf_static.php","tcpdf.php"],"commits":["https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed","https://github.com/tecnickcom/TCPDF/commit/bfa7d2b6d455ebf72ebe3d48fbd487ee5a1f6f3b"],"basis":"shared function","functions":["TCPDF_STATIC"]}]},{"from":"CVE-2018-17057","to":"CVE-2024-56520","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["include/tcpdf_fonts.php"],"commits":["https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed","https://github.com/tecnickcom/TCPDF/commit/a0a02efe487cc39bd5223359e916dbeafb5cd6fe"],"basis":"shared function","functions":["addTTFfont"]}]},{"from":"CVE-2018-17057","to":"CVE-2024-56521","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["include/tcpdf_static.php"],"commits":["https://github.com/tecnickcom/TCPDF/commit/1861e33fe05f653b67d070f7c106463e7a5c26ed","https://github.com/tecnickcom/TCPDF/commit/aab43ab0a824e956276141a28a24c7c0be20f554"],"basis":"shared function","functions":["TCPDF_STATIC","fileGetContents","fopenLocal"]}]}]}}