{"answers":{"affected":"2 open source packages ship an affected version, including solana_rbpf. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-23066 in the wild and no public exploit code.","fix":"Upgrade solana_rbpf to 0.2.28 or later.","what":"CVE-2022-23066 is a critical vulnerability in solana-labs rbpf, published on 9 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-23066 and fix it if it is affected.\n\nWhat it is: CVE-2022-23066 is a critical vulnerability in solana-labs rbpf, published on 9 May 2022. 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-2022-23066 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- solana_rbpf (crates.io): affected from 0.2.26; fixed in 0.2.28\n- solana_rbpf (crates.io): affected from 0.2.26; fixed in 0.2.28\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-2022-23066/ (Markdown: https://insights.sbomify.com/CVE-2022-23066/index.md)","id":"CVE-2022-23066","markdown":"https://insights.sbomify.com/CVE-2022-23066/index.md","name":"CVE-2022-23066","record":{"aliases":["GHSA-9qmm-4mfr-r3wj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Solana rBPF library","requires_auth":"none","summary":"Incorrect calculation in the sdiv instruction can lead to wrong execution paths, causing token transfer errors and availability issues in Solana rBPF.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Mend","cpe":[{"product":"rbpf","vendor":"solana"}],"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-682","name":"Incorrect Calculation"}],"description":"In Solana rBPF versions 0.2.26 and 0.2.27 are affected by Incorrect Calculation which is caused by improper implementation of sdiv instruction. This can lead to the wrong execution path, resulting in huge loss in specific cases. For example, the result of a sdiv instruction may decide whether to transfer tokens or not. The vulnerability affects both integrity and may cause serious availability problems.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Solana rBPF - Incorrect Calculation in sdiv instruction","id":"CVE-2022-23066","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"other","year":"2022"},"n_packages":2,"n_references":3,"next":{"headline":"ToolJet - Token Leakage via Referer Header","id":"CVE-2022-23067"},"packages":[{"ecosystem":"crates.io","fixed":["0.2.28"],"introduced":["0.2.26"],"last_affected":[],"package":"solana_rbpf","purl":null,"source":"GHSA-9qmm-4mfr-r3wj"},{"ecosystem":"crates.io","fixed":["0.2.28"],"introduced":["0.2.26"],"last_affected":[],"package":"solana_rbpf","purl":"pkg:cargo/solana_rbpf","source":"GHSA-9qmm-4mfr-r3wj"}],"prev":{"headline":"Vendure - XSS via SVG File Upload","id":"CVE-2022-23065"},"products":["rbpf"],"published":"2022-05-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["solana-labs"]},"summary":"Incorrect calculation in the sdiv instruction can lead to wrong execution paths, causing token transfer errors and availability issues in Solana rBPF.","url":"https://insights.sbomify.com/CVE-2022-23066/"}