{"id":"CVE-2023-28424","aliases":["CVE-2023-28424"],"related":[],"kind":"vulnerability","state":"published","title":"Soko SQL Injection vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-03-20T12:47:13.250Z","modified":"2026-06-17T05:47:41.300Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 1.0.2","status":"affected"}],"vendor":"gentoo","product":"soko","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.0.2"}],"vendor":"gentoo","product":"soko","cpe":"cpe:2.3:a:gentoo:soko:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.sonarsource.com/blog/why-orms-and-prepared-statements-cant-always-win","tags":["technical-description","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-02-25T14:30:22.571Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-28424","url":"https://www.cve.org/CVERecord?id=CVE-2023-28424","licence":"CVE Terms of Use","modified":"2025-02-25T14:52:46.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-28424","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28424","licence":"Public domain","modified":"2026-06-17T05:47:41.300Z"}],"updatedAt":"2026-11-25T22:58:22.534Z","epss":{"score":0.0115,"percentile":0.67782,"date":"2026-12-01T12:00:22.000Z"}}