GHSA-xpp3-xrff-w6rh: Rocksdb Rocksdb Vulnerable To Out-of-bounds Read Vulnerability

MODERATE
Published
Advisory Summary

GHSA-xpp3-xrff-w6rh is a MODERATE rocksdb vulnerable to out-of-bounds read vulnerability (General Security Weakness) affecting Rocksdb libraries in the crates.io ecosystem. The issue involves rocksdb vulnerable to out-of-bounds read. Remediation is available by upgrading affected packages to version 0.19.0.

GHSA-xpp3-xrff-w6rh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xpp3-xrff-w6rh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rocksdb
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-xpp3-xrff-w6rh

To remediate this vulnerability, upgrade all affected Rocksdb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rocksdb fixed: 0.19.0
Upgrade rocksdb to 0.19.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for rocksdb

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xpp3-xrff-w6rh, inspect your project dependencies for Rocksdb:

inspect dependencies for rocksdb

Analyze the terminal output to locate any version of Rocksdb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Rocksdb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Affected versions of this crate called the RocksDB C API `rocksdb_open_column_families_with_ttl()` with a pointer to a single integer TTL value, but one TTL value for each column family is expected. This is only relevant when using `rocksdb::DBWithThreadMode::open_cf_descriptors_with_ttl()` with multiple column families. This bug has been fixed in v0.19.0.

GHSA-xpp3-xrff-w6rh Affected Rocksdb Versions

1 component(s)
Fixed Versions:
0.19.0
Product / Package Ecosystem Affected Versions Fixed Version
rocksdb
crates.io
< 0.19.0
0.19.0

References

Frequently Asked Questions

What is GHSA-xpp3-xrff-w6rh?
GHSA-xpp3-xrff-w6rh is a security vulnerability in Rocksdb involving rocksdb vulnerable to out-of-bounds read under General Security Weakness.
Which Rocksdb versions are affected?
Affected versions include releases prior to 0.19.0 across affected packages: rocksdb.
What version fixes GHSA-xpp3-xrff-w6rh?
Upgrading to 0.19.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rocksdb affected?
Yes, rocksdb is affected in releases prior to 0.19.0. Upgrade your dependency to 0.19.0 or later.
What CWE is associated with GHSA-xpp3-xrff-w6rh?
GHSA-xpp3-xrff-w6rh is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-xpp3-xrff-w6rh?
Run the dependency tree command: 'inspect dependencies for rocksdb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xpp3-xrff-w6rh",
  "modified" : "2022-08-12T15:31:10Z",
  "published" : "2022-08-12T15:31:10Z",
  "aliases" : [ ],
  "summary" : "rocksdb vulnerable to out-of-bounds read",
  "details" : "Affected versions of this crate called the RocksDB C API\n`rocksdb_open_column_families_with_ttl()` with a pointer to a single integer\nTTL value, but one TTL value for each column family is expected.\n\nThis is only relevant when using\n`rocksdb::DBWithThreadMode::open_cf_descriptors_with_ttl()` with multiple\ncolumn families.\n\nThis bug has been fixed in v0.19.0.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rocksdb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.19.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rust-rocksdb/rust-rocksdb/pull/616"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rust-rocksdb/rust-rocksdb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rust-rocksdb/rust-rocksdb/releases/tag/v0.19.0"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0046.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-12T15:31:10Z",
    "nvd_published_at" : null
  }
}