CVE-2022-23066: Incorrect Calculation in solana_rbpf

github.com/heroiclabs/nakama Updated 02 Oct 2025

Summary

06/07/2022
No i
High
7.5

CVE-2022-2306: Insufficient Session Expiration in Nakama. Affects github.com/heroiclabs/nakama versions < 3.12.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Solana rBPF is a crate that provides a virtual machine for executing programs written in the Solana BPF (Berkeley Packet Filter) language. It is used in the Solana blockchain platform to execute smart contracts. The rBPF virtual machine is responsible for executing the bytecode of these contracts and ensuring their correct behavior. However, versions 0.2.26 and 0.2.27 of solana_rbpf are affected by an Incorrect Calculation vulnerability. This vulnerability arises from an improper implementation of the sdiv instruction, which can lead to the wrong execution path and result in significant losses in certain cases. For example, the result of a sdiv instruction may determine whether to transfer tokens or not. This vulnerability poses a risk to the integrity of the system and may cause serious availability problems.

Vulnerability Detail

The Incorrect Calculation vulnerability in solana_rbpf is caused by the improper implementation of the sdiv instruction. This vulnerability can result in the wrong execution path being taken, leading to significant losses in specific cases. For instance, if the result of a sdiv instruction determines whether to transfer tokens or not, an incorrect calculation can lead to incorrect decisions and potential financial losses. The vulnerability affects both the integrity and availability of the system, making it a critical issue. The vulnerability is assigned a CVSS score of 9.1, indicating its high severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of solana_rbpf to ensure the security and integrity of the system.

Conclusion

The Incorrect Calculation vulnerability in solana_rbpf can have severe consequences for the integrity and availability of the system. It is crucial to update to the fixed version (0.2.28 or later) to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/heroiclabs/nakama →

Share this vulnerability

FAQ

Solana rBPF is a crate that provides a virtual machine for executing programs written in the Solana BPF language. It is used in the Solana blockchain platform to execute smart contracts.

Versions 0.2.26 and 0.2.27 of solana_rbpf are affected by the Incorrect Calculation vulnerability.

The vulnerability can lead to incorrect execution paths and significant losses in specific cases. It can affect the integrity and availability of the system, potentially causing financial losses.

To fix the vulnerability, update the solana_rbpf package to version 0.2.28 or later.

No, there is no known workaround for this vulnerability. Updating to the fixed version is necessary.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback