CVE-2025-57275: Spdk SPDK Is Vulnerable To Buffer Vulnerability

MODERATE
Advisory Identifier: GHSA-5m5w-w2h2-fqgq
CVSS 5.5
CWE-120 CWE-119
Published
Advisory Summary

CVE-2025-57275 is a MODERATE (CVSS 5.5) spdk is vulnerable to buffer vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Spdk libraries in the PyPI ecosystem. The issue involves spdk is vulnerable to buffer overflow in the nvme-of target component. Remediation is available by upgrading affected packages to version 25.9.

CVE-2025-57275 at a Glance

CVE Identifier CVE-2025-57275
GHSA Identifier GHSA-5m5w-w2h2-fqgq
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Spdk
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2025-57275

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

spdk fixed: 25.9
pip install spdk>=25.9
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 spdk

How to Check if You Are Affected

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

pip show spdk

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Spdk, 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

Storage Performance Development Kit (SPDK) 25.05 is vulnerable to Buffer Overflow in the NVMe-oF target component in SPDK - lib/nvmf.

CVE-2025-57275 Affected Spdk Versions

1 component(s)
Fixed Versions:
25.9
Product / Package Ecosystem Affected Versions Fixed Version
spdk
PyPI
< 25.9
25.9

References

Frequently Asked Questions

What is CVE-2025-57275?
CVE-2025-57275 is a security vulnerability in Spdk involving SPDK is vulnerable to buffer overflow in the NVMe-oF target component under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Spdk versions are affected?
Affected versions include releases prior to 25.9 across affected packages: spdk.
What version fixes CVE-2025-57275?
Upgrading to 25.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spdk affected?
Yes, spdk is affected in releases prior to 25.9. Upgrade your dependency to 25.9 or later.
What is the CVSS score of CVE-2025-57275?
CVE-2025-57275 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2025-57275?
CVE-2025-57275 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check PyPI dependencies for CVE-2025-57275?
Run the dependency tree command: 'pip show spdk'. 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-5m5w-w2h2-fqgq",
  "modified" : "2025-10-01T19:43:23Z",
  "published" : "2025-10-01T15:30:34Z",
  "aliases" : [ "CVE-2025-57275" ],
  "summary" : "SPDK is vulnerable to buffer overflow in the NVMe-oF target component",
  "details" : "Storage Performance Development Kit (SPDK) 25.05 is vulnerable to Buffer Overflow in the NVMe-oF target component in SPDK - lib/nvmf.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "spdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "25.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57275"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spdk/spdk/commit/8981ddb1ccaf54f85d34482a5a644e075b58cb36"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spdk/spdk/commit/f786c6d75f5c5162363a621b24f5449c729679c9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spdk/spdk"
  }, {
    "type" : "WEB",
    "url" : "https://spdk.io"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119", "CWE-120" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-01T19:43:22Z",
    "nvd_published_at" : "2025-10-01T15:15:47Z"
  }
}