{"id":"CVE-2022-31181","published":"2022-08-01T19:30:16Z","modified":"2025-04-23T17:56:10Z","title":"Remote code execution in prestashop","vendor":"PrestaShop","product":"PrestaShop","tier":"core","eol":null,"affectedVersions":[{"vendor":"PrestaShop","product":"PrestaShop","versions":[">= 1.6.0.10, < 1.7.8.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-23T15:48:50.998040Z","from":"CISA ADP","provenance":"source"},"description":{"text":"PrestaShop is an Open Source e-commerce platform. In versions from 1.6.0.10 and before 1.7.8.7 PrestaShop is subject to an SQL injection vulnerability which can be chained to call PHP's Eval function on attacker input. The problem is fixed in version 1.7.8.7. Users are advised to upgrade. Users unable to upgrade may delete the MySQL Smarty cache feature.","provenance":"source","from":"CVE.org"},"summary":{"text":"A SQL injection flaw in PrestaShop, the open-source e-commerce platform, can be chained to make PHP's eval function run attacker-supplied input, affecting versions from 1.6.0.10 up to but not including 1.7.8.7. An unauthenticated attacker with network access can exploit it without user interaction, with no special configuration beyond the affected version, to execute code on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:18:53Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.06532,"percentile":0.94564,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2022-07-22","exploitedFirstSeen":"2022-07-22","ransomware":false,"evidence":[{"url":"https://build.prestashop-project.org/news/2022/major-security-vulnerability-on-prestashop-websites/","date":"2022-07-22"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/b6d96e7c2a4e35a44e96ffbcdfd34439b56af804","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.7","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":[">=1.6.0.10, <1.7.8.7"],"patched":["1.7.8.7"],"from":["GHSA-hrgx-p36p-89q4"],"provenance":"source"}],"advisories":[{"id":"GHSA-hrgx-p36p-89q4","url":"https://github.com/advisories/GHSA-hrgx-p36p-89q4","severity":"CRITICAL","ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":[">=1.6.0.10, <1.7.8.7"],"patched":["1.7.8.7"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-6354","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-6354","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-07-26","earliestUrl":"https://github.com/drkbcn/lblfixer_cve_2022_31181","repos":[{"name":"drkbcn/lblfixer_cve_2022_31181","url":"https://github.com/drkbcn/lblfixer_cve_2022_31181","stars":0,"created":"2022-07-26"}]},"nuclei":[{"id":"CVE-2022-31181","name":"PrestaShop - SQL Injection to Eval Injection","severity":"critical","path":"http/cves/2022/CVE-2022-31181.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31181.yaml"}],"first":{"date":"2022-07-26","source":"PoC-in-GitHub","url":"https://github.com/drkbcn/lblfixer_cve_2022_31181"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-07-22","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://build.prestashop-project.org/news/2022/major-security-vulnerability-on-prestashop-websites/","provenance":"source"},{"date":"2022-07-26","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/drkbcn/lblfixer_cve_2022_31181","provenance":"source"},{"date":"2022-08-01","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-31181","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":65.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1587 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.91,"detail":"percentile 0.9456"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2019-11876","published":"2019-05-24","fixed":"1.7.6.0","kev":false},{"cve":"CVE-2021-43789","published":"2021-12-07","fixed":"1.7.8.2","kev":false},{"cve":"CVE-2022-21686","published":"2022-01-26","fixed":"1.7.8.3","kev":false,"link":{"from":"CVE-2022-21686","to":"CVE-2022-31181","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.3","toFixed":"1.7.8.7","daysApart":187}]}},{"cve":"CVE-2022-31181","published":"2022-08-01","fixed":"1.7.8.7","kev":false},{"cve":"CVE-2022-46158","published":"2022-12-08","fixed":"1.7.8.8","kev":false,"link":{"from":"CVE-2022-31181","to":"CVE-2022-46158","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"1.7.8.7","toFixed":"1.7.8.8","daysApart":129}]}},{"cve":"CVE-2023-25170","published":"2023-03-13","fixed":"8.0.1","kev":false},{"cve":"CVE-2023-30545","published":"2023-04-25","fixed":"8.0.4","kev":false}],"package":"Packagist:prestashop/prestashop"}}