GHSA-xpp3-xrff-w6rh: Rocksdb Rocksdb Vulnerable To Out-of-bounds Read Vulnerability
MODERATEGHSA-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
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.
Upgrade rocksdb to 0.19.0
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
GHSA-xpp3-xrff-w6rh Affected Rocksdb Versions
1 component(s)| 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?
Which Rocksdb versions are affected?
What version fixes GHSA-xpp3-xrff-w6rh?
Is rocksdb affected?
What CWE is associated with GHSA-xpp3-xrff-w6rh?
How can I check crates.io dependencies for GHSA-xpp3-xrff-w6rh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}