CVE-2024-8375 Object deserialization in Reverb leading to RCE

Medium 5.7 Published Updated

An attacker can achieve remote code execution by exploiting a use-after-free vulnerability in the Reverb library via crafted tensor data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-8375?

CVE-2024-8375 is a medium-severity use after free vulnerability in Google Deepmind Reverb, published on 19 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

There exists a use after free vulnerability in Reverb. Reverb supports the VARIANT datatype, which is supposed to represent an arbitrary object in C++. When a tensor proto of type VARIANT is unpacked, memory is first allocated to store the entire tensor, and a ctor is called on each instance. Afterwards, Reverb copies the content in tensor_content to the previously mentioned pre-allocated memory, which results in the bytes in tensor_content overwriting the vtable pointers of all the objects which were previously allocated. Reverb exposes 2 relevant gRPC endpoints: InsertStream and SampleStream. The attacker can insert this stream into the server’s database, then when the client next calls SampleStream they will unpack the tensor into RAM, and when any method on that object is called (including its destructor) the attacker gains control of the Program Counter. We recommend upgrading past git commit  https://github.com/google-deepmind/reverb/commit/6a0dcf4c9e842b7f999912f792aaa6f6bd261a25

Weakness: CWE-416, CWE-502

Which versions are affected by CVE-2024-8375?

6 open source packages ship an affected version, including dm-reverb and dm-reverb-nightly. It affects 1 product.

PackageAffectedFixed in
dm-reverb PyPIAll versions to 0.14.0None
dm-reverb PyPIAll versions to 0.14.0None
dm-reverb PyPIAll versions to 0.14.0None
dm-reverb-nightly PyPIAll versions to 0.15.0.dev20240214None
dm-reverb-nightly PyPIAll versions to 0.15.0.dev20240214None
dm-reverb-nightly PyPIAll versions to 0.15.0.dev20240214None

Products include Google Reverb.

How do I fix CVE-2024-8375?

No fix has been published for CVE-2024-8375 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-8375 being exploited?

There is no known exploitation of CVE-2024-8375 in the wild and no public exploit code.

Sources

Also known as GHSA-w69q-w4h4-2fx8, PYSEC-2026-1306, PYSEC-2026-2452.

Is CVE-2024-8375 in your software?

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

Check your SBOMs for free