{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-28424","published":"2023-03-20T13:15:11.973000Z","last_modified":"2026-06-17T05:47:41.300000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:gentoo:soko:*:*:*:*:*:*:*:*","part":"a","vendor":"gentoo","product":"soko","version_end_excluding":"1.0.2"}],"cpes_truncated":false,"vendors":["gentoo"],"products":["gentoo/soko"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01304,"percentile":0.70614,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2023-28424/","html_en":"/en/cve/CVE-2023-28424/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-28424","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-28424"},"untrusted":{"vendor_name":"Gentoo","product_name":"Soko","desc_en":"Soko if the code that powers packages.gentoo.org. Prior to version 1.0.2, the two package search handlers, `Search` and `SearchFeed`, implemented in `pkg/app/handler/packages/search.go`, are affected by a SQL injection via the `q` parameter. As a result, unauthenticated attackers can execute arbitrary SQL queries on `https://packages.gentoo.org/`. It was also demonstrated that primitive was enough to gain code execution in the context of the PostgreSQL container. The issue was addressed in commit `4fa6e4b619c0362728955b6ec56eab0e0cbf1e23y` of version 1.0.2 using prepared statements to interpolate user-controlled data in SQL queries.","affected":[{"untrusted_vendor":"gentoo","untrusted_product":"soko","versions":[]}],"references":[{"url":"https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2","tags":["Vendor Advisory"]},{"url":"https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23","tags":["Patch"]},{"url":"https://www.sonarsource.com/blog/why-orms-and-prepared-statements-cant-always-win","tags":["Technical Description"]}]}}