CVE-2023-28424: gentoo soko SQL Injection
Vulnerability summary
CVE-2023-28424 is a critical (CVSS 9.8) SQL Injection vulnerability in gentoo soko. EPSS estimates a 1.15% chance of exploitation in the next 30 days, higher than 66.3% of scored vulnerabilities.
Timeline
- 20-03-2023PublishedVulnerability first disclosed.
- 25-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- CVE.orgCNA9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
EPSS trend
Probability
1.15%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
0.00 pp
From 1.15% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Gentoo1 product
- soko< 1.0.2
1 vendor · 1 product
References
3 links- gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23X Refsource MISCPatch
- www.sonarsource.com/blog/why-orms-and-prepared-statements-cant-always-winX Refsource MISCTechnical Description