{"answers":{"affected":"2 open source packages ship an affected version, including prestashop/productcomments. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26248 exists.","fix":"Upgrade prestashop/productcomments to 4.2.1 or later.","what":"CVE-2020-26248 is a medium-severity SQL injection vulnerability in PrestaShop productcomments, published on 3 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-26248 and fix it if it is affected.\n\nWhat it is: CVE-2020-26248 is a medium-severity SQL injection vulnerability in PrestaShop productcomments, published on 3 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26248 exists.\n\nAffected packages and fixed versions:\n- prestashop/productcomments (Packagist): affected from 4.0.0; fixed in 4.2.1\n- prestashop/productcomments (Packagist): affected from 4.0.0; fixed in 4.2.1\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-2020-26248/ (Markdown: https://insights.sbomify.com/CVE-2020-26248/index.md)","id":"CVE-2020-26248","markdown":"https://insights.sbomify.com/CVE-2020-26248/index.md","name":"CVE-2020-26248","record":{"aliases":["GHSA-5v44-7647-xfw9"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PrestaShop module","requires_auth":"none","summary":"Attackers can exploit blind SQL injection in the PrestaShop productcomments module to retrieve data or crash the MySQL service.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"productcomments","vendor":"prestashop"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"In the PrestaShop module \"productcomments\" before version 4.2.1, an attacker can use a Blind SQL injection to retrieve data or stop the MySQL service. The problem is fixed in 4.2.1 of the module.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2020/CVE-2020-26248.yaml","stars":null,"title":"PrestaShop Product Comments \u003c4.2.0 - SQL Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Blind SQL injection during the CommentGrade process","id":"CVE-2020-26248","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"sql_injection","year":"2020"},"n_packages":2,"n_references":5,"next":{"headline":"Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerability","id":"CVE-2020-26249"},"packages":[{"ecosystem":"Packagist","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"prestashop/productcomments","purl":null,"source":"GHSA-5v44-7647-xfw9"},{"ecosystem":"Packagist","fixed":["4.2.1"],"introduced":["4.0.0"],"last_affected":[],"package":"prestashop/productcomments","purl":"pkg:composer/prestashop/productcomments","source":"GHSA-5v44-7647-xfw9"}],"prev":{"headline":"XXE in Nokogiri","id":"CVE-2020-26247"},"products":["productcomments"],"published":"2020-12-03","related":[{"cvss_score":4.3,"headline":"PrestaShop module Product Comments vulnerable to cross-site scripting (XSS)","id":"CVE-2022-35933","kev_date_added":null,"published":"2022-09-02"}],"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":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["PrestaShop"]},"summary":"Attackers can exploit blind SQL injection in the PrestaShop productcomments module to retrieve data or crash the MySQL service.","url":"https://insights.sbomify.com/CVE-2020-26248/"}