{"answers":{"affected":"8 open source packages ship an affected version, including fooman/tcpdf, la-haute-societe/tcpdf and spoonity/tcpdf. It affects 2 products.","exploited":"There is no known exploitation of CVE-2018-17057 in the wild and no public exploit code.","fix":"Upgrade fooman/tcpdf to 6.2.22 or later.","what":"CVE-2018-17057 is a critical unsafe deserialization vulnerability in Limesurvey Limesurvey, published on 14 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-17057 and fix it if it is affected.\n\nWhat it is: CVE-2018-17057 is a critical unsafe deserialization vulnerability in Limesurvey Limesurvey, published on 14 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-17057 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fooman/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- fooman/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- la-haute-societe/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- la-haute-societe/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- spoonity/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- spoonity/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- tecnickcom/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n- tecnickcom/tcpdf (Packagist): affected all versions; fixed in 6.2.22\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-17057/ (Markdown: https://insights.sbomify.com/CVE-2018-17057/index.md)","id":"CVE-2018-17057","markdown":"https://insights.sbomify.com/CVE-2018-17057/index.md","name":"CVE-2018-17057","record":{"aliases":["DEBIAN-CVE-2018-17057","GHSA-5hw4-m7f3-hhx8","UBUNTU-CVE-2018-17057"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP PDF library","requires_auth":"none","summary":"Attackers can execute arbitrary code by triggering unsafe deserialization of arbitrary data via the phar:// wrapper in the TCPDF library.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"limesurvey","vendor":"limesurvey"},{"product":"tcpdf","vendor":"tecnick"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"An issue was discovered in TCPDF before 6.2.22. Attackers can trigger deserialization of arbitrary data via the phar:// wrapper.","ecosystems":["Packagist"],"exploits":{"exploitdb":1,"first_seen":"2019-04-02","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2019-04-02","kind":"exploitdb","ref":"46634","stars":null,"title":"LimeSurvey \u003c 3.16 - Remote Code Execution"}],"tier":"poc_unverified"},"has_fix":true,"headline":"TCPDF vulnerable to attackers triggering deserialization of arbitrary data","id":"CVE-2018-17057","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":"limesurvey:limesurvey","products":["limesurvey:limesurvey"],"type":"deserialization","year":"2018"},"n_packages":8,"n_references":7,"next":{"headline":"File upload in n/a","id":"CVE-2018-17058"},"packages":[{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"fooman/tcpdf","purl":null,"source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"fooman/tcpdf","purl":"pkg:composer/fooman/tcpdf","source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"la-haute-societe/tcpdf","purl":null,"source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"la-haute-societe/tcpdf","purl":"pkg:composer/la-haute-societe/tcpdf","source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"spoonity/tcpdf","purl":null,"source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"spoonity/tcpdf","purl":"pkg:composer/spoonity/tcpdf","source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"tecnickcom/tcpdf","purl":null,"source":"GHSA-5hw4-m7f3-hhx8"},{"ecosystem":"Packagist","fixed":["6.2.22"],"introduced":["0"],"last_affected":[],"package":"tecnickcom/tcpdf","purl":"pkg:composer/tecnickcom/tcpdf","source":"GHSA-5hw4-m7f3-hhx8"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2018-17056"},"products":["n/a"],"published":"2018-09-14","related":[{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2025-56422","kev_date_added":null,"published":"2026-03-10"},{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2022-48008","kev_date_added":null,"published":"2023-01-27"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2019-25019","kev_date_added":null,"published":"2021-02-14"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2020-11455","kev_date_added":null,"published":"2020-04-01"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2019-16184","kev_date_added":null,"published":"2019-09-09"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2019-9960","kev_date_added":null,"published":"2019-03-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by triggering unsafe deserialization of arbitrary data via the phar:// wrapper in the TCPDF library.","url":"https://insights.sbomify.com/CVE-2018-17057/"}