{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-26033 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-26033 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-26033 is a high-severity SQL injection vulnerability in gentoo soko, published on 24 Feb 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-26033 and fix it if it is affected.\n\nWhat it is: CVE-2023-26033 is a high-severity SQL injection vulnerability in gentoo soko, published on 24 Feb 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-26033 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-26033/ (Markdown: https://insights.sbomify.com/CVE-2023-26033/index.md)","id":"CVE-2023-26033","markdown":"https://insights.sbomify.com/CVE-2023-26033/index.md","name":"CVE-2023-26033","record":{"aliases":["GHSA-gp8g-jfq9-5q2g"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["denial_of_service","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Gentoo package index","requires_auth":"none","summary":"Attackers can inject SQL via cookies to wipe or modify the public package database, causing denial of 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":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Gentoo soko is the code that powers packages.gentoo.org. Versions prior to 1.0.1 are vulnerable to SQL Injection, leading to a Denial of Service. If the user selects (in user preferences) the \"Recently Visited Packages\" view for the index page, the value of the `search_history` cookie is used as a base64 encoded comma separated list of atoms. These are string loaded directly into the SQL query with `atom = '%s'` format string. As a result, any user can modify the browser's cookie value and inject most SQL queries. A proof of concept malformed cookie was generated that wiped the database or changed it's content. On the database, only public data is stored, so there is no confidentiality issues to site users. If it is known that the database was modified, a full restoration of data is possible by performing a full database wipe and performing full update of all components. This issue is patched with commit id 5ae9ca83b73. Version 1.0.1 contains the patch. If users are unable to upgrade immediately, the following workarounds may be applied: (1.) Use a proxy to always drop the `search_history` cookie until upgraded. The impact on user experience is low. (2.) Sanitize to the value of `search_history` cookie after base64 decoding it.","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":"Gentoo soko contains DoS attack based on SQL Injection","id":"CVE-2023-26033","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"ZoneMinder SQL Injection","id":"CVE-2023-26034"},"packages":[],"prev":{"headline":"ZoneMinder contains SQL injection via malicious Jason Web Token","id":"CVE-2023-26032"},"products":["soko"],"published":"2023-02-24","related":[{"cvss_score":9.1,"headline":"Soko SQL Injection vulnerability","id":"CVE-2023-28424","kev_date_added":null,"published":"2023-03-20"}],"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-03-10","vendors":["gentoo"]},"summary":"Attackers can inject SQL via cookies to wipe or modify the public package database, causing denial of service.","url":"https://insights.sbomify.com/CVE-2023-26033/"}