GHSA-xpp3-xrff-w6rh rocksdb vulnerable to out-of-bounds read

Not scored Published

An out-of-bounds read in the Rust RocksDB binding allows attackers to read memory or cause crashes when using multiple column families with TTL.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-xpp3-xrff-w6rh?

GHSA-xpp3-xrff-w6rh is a memory corruption vulnerability in rocksdb, published on 11 May 2022.

Official description

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.

Which versions are affected by GHSA-xpp3-xrff-w6rh?

3 open source packages ship an affected version, including rocksdb.

PackageAffectedFixed in
rocksdb crates.ioAll versions0.19.0
rocksdb crates.ioAll versions0.19.0
rocksdb crates.ioFrom 0.0.0-00.19.0

How do I fix GHSA-xpp3-xrff-w6rh?

Upgrade rocksdb to 0.19.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-xpp3-xrff-w6rh being exploited?

There is no known exploitation of GHSA-xpp3-xrff-w6rh in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0046.

Is GHSA-xpp3-xrff-w6rh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free