CVE-2024-8375: Dm reverb Reverb Use After Free Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-w69q-w4h4-2fx8
CVSS 6.1
CWE-502 CWE-416
Published
Advisory Summary

CVE-2024-8375 is a MODERATE (CVSS 6.1) reverb use after free vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Dm reverb libraries in the PyPI ecosystem. The issue involves reverb use after free vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2024-8375 at a Glance

CVE Identifier CVE-2024-8375
GHSA Identifier GHSA-w69q-w4h4-2fx8
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Dm reverb
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-8375

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

dm-reverb fixed: Latest secure release
pip install dm-reverb>=Latest secure release
dm-reverb-nightly fixed: Latest secure release
pip install dm-reverb-nightly>=Latest secure release
Verify Direct and Transitive Dependencies

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

pip show dm-reverb

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-8375, inspect your installed packages using pip:

pip show dm-reverb

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

Note: The pip show dm-reverb command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Dm reverb, 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

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

CVE-2024-8375 Affected Dm reverb Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
dm-reverb
PyPI
≤ 0.14.0
dm-reverb-nightly
PyPI
≤ 0.15.0.dev20240214

References

Frequently Asked Questions

What is CVE-2024-8375?
CVE-2024-8375 is a security vulnerability in Dm reverb involving Reverb use after free vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Dm reverb versions are affected?
Affected versions include releases prior to current release patches across affected packages: dm-reverb, dm-reverb-nightly.
What version fixes CVE-2024-8375?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is dm-reverb affected?
Yes, dm-reverb is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is dm-reverb-nightly affected?
Yes, dm-reverb-nightly is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-8375?
CVE-2024-8375 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:N.
What CWE is associated with CVE-2024-8375?
CVE-2024-8375 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2024-8375?
Run the dependency tree command: 'pip show dm-reverb'. 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-w69q-w4h4-2fx8",
  "modified" : "2025-07-22T21:41:44Z",
  "published" : "2024-09-19T18:30:52Z",
  "aliases" : [ "CVE-2024-8375" ],
  "summary" : "Reverb use after free vulnerability",
  "details" : "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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:A/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dm-reverb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dm-reverb-nightly"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.15.0.dev20240214"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8375"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google-deepmind/reverb/issues/141"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google-deepmind/reverb/commit/6a0dcf4c9e842b7f999912f792aaa6f6bd261a25"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/google-deepmind/reverb"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-416", "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-19T19:47:59Z",
    "nvd_published_at" : "2024-09-19T16:15:06Z"
  }
}