{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-28424 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-28424 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-28424 is a critical SQL injection vulnerability in gentoo soko, published on 20 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-28424 and fix it if it is affected.\n\nWhat it is: CVE-2023-28424 is a critical SQL injection vulnerability in gentoo soko, published on 20 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-28424 in the wild and no public exploit code.\n\nAffected product: gentoo soko. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-28424/ (Markdown: https://insights.sbomify.com/CVE-2023-28424/index.md)","id":"CVE-2023-28424","markdown":"https://insights.sbomify.com/CVE-2023-28424/index.md","name":"CVE-2023-28424","record":{"aliases":["GHSA-gc2x-86p3-mxg2"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Gentoo package search","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary SQL queries and potentially gain code execution on the Gentoo package search service.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"soko","vendor":"gentoo"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Soko SQL Injection vulnerability","id":"CVE-2023-28424","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2023"},"n_packages":0,"n_references":3,"next":{"headline":"Specially crafted MSETNX command can lead to denial-of-service","id":"CVE-2023-28425"},"packages":[],"prev":{"headline":"WordPress Modern Footnotes Plugin \u003c= 1.4.15 is vulnerable to Cross Site Scripting (XSS)","id":"CVE-2023-28423"},"products":["soko"],"published":"2023-03-20","related":[{"cvss_score":7.5,"headline":"Gentoo soko contains DoS attack based on SQL Injection","id":"CVE-2023-26033","kev_date_added":null,"published":"2023-02-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["gentoo"]},"summary":"Unauthenticated attackers can execute arbitrary SQL queries and potentially gain code execution on the Gentoo package search service.","url":"https://insights.sbomify.com/CVE-2023-28424/"}