# CVE-2022-23066: Solana rBPF - Incorrect Calculation in sdiv instruction

- Severity: Critical 9.1 (CVSS:3.1, scored by Mend) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.52%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-09T06:25:09.088Z
- Modified: 2026-06-17T04:29:26.900Z
- Also known as: GHSA-9qmm-4mfr-r3wj
- Weaknesses: CWE-682
- Assigned by: Mend

## 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.

(As written by CVE List.)

## Affected

- solana-labs rbpf: from 0.2.26 before unspecified; from unspecified up to 0.2.27
- solana_rbpf (crates.io): from 0.2.26 before 0.2.28
- solana rbpf: 0.2.26; 0.2.27

## Every score

- Mend: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-23066> (exploit, third-party-advisory, web)
- <https://blocksecteam.medium.com/how-a-critical-bug-in-solana-network-was-detected-and-timely-patched-a701870e1324> (exploit, third-party-advisory, web)
- <https://github.com/solana-labs/rbpf/commit/e61e045f8c244de978401d186dcfd50838817297> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23066> (advisory)
- <https://github.com/solana-labs/rbpf> (package)

## Sources

- CVE List: [CVE-2022-23066](https://www.cve.org/CVERecord?id=CVE-2022-23066), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-9qmm-4mfr-r3wj](https://github.com/advisories/GHSA-9qmm-4mfr-r3wj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-23066](https://nvd.nist.gov/vuln/detail/CVE-2022-23066), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23066 · Whole record: https://cve.day/CVE-2022-23066.json · Rebuilt by cve.day 2026-11-25T22:58:11.509Z
