Vulnerabilities in pkg:pypi/modular

PACKAGE
Advisory Identifier: GHSA-7xcv-9j6c-2fmc
Advisory Summary

CVE-2025-60455 is a CRITICAL modular max serve has unsafe vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Modular libraries in the PyPI ecosystem. The issue involves modular max serve has unsafe deserialization vulnerability. Remediation is available by upgrading affected packages to version 25.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/modular

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/modular. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7xcv-9j6c-2fmc CVE-2025-60455 CRITICAL Modular Max Serve has Unsafe Deserialization vulnerability

CVE-2025-60455 at a Glance

CVE Identifier CVE-2025-60455
GHSA Identifier GHSA-7xcv-9j6c-2fmc
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Modular
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-60455

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

modular fixed: 25.6.0
pip install modular>=25.6.0
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 modular

How to Check if You Are Affected

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

pip show modular

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

Note: The pip show modular 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 Modular, 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

Unsafe Deserialization vulnerability in Modular Max Serve before 25.6, specifically when the "--experimental-enable-kvcache-agent" feature is used allowing attackers to execute arbitrary code.

CVE-2025-60455 Affected Modular Versions

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

References

Frequently Asked Questions

What is CVE-2025-60455?
CVE-2025-60455 is a security vulnerability in Modular involving Modular Max Serve has Unsafe Deserialization vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Modular versions are affected?
Affected versions include releases prior to 25.6.0 across affected packages: modular.
What version fixes CVE-2025-60455?
Upgrading to 25.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is modular affected?
Yes, modular is affected in releases prior to 25.6.0. Upgrade your dependency to 25.6.0 or later.
What CWE is associated with CVE-2025-60455?
CVE-2025-60455 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-2025-60455?
Run the dependency tree command: 'pip show modular'. 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-7xcv-9j6c-2fmc",
  "modified" : "2025-11-18T22:08:39Z",
  "published" : "2025-11-18T21:32:31Z",
  "aliases" : [ "CVE-2025-60455" ],
  "summary" : "Modular Max Serve has Unsafe Deserialization vulnerability",
  "details" : "Unsafe Deserialization vulnerability in Modular Max Serve before 25.6, specifically when the \"--experimental-enable-kvcache-agent\" feature is used allowing attackers to execute arbitrary code.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "modular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "25.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-60455"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modular/modular/issues/4795"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modular/modular/commit/10620059fb5c47fb0c30e5d21a8ff3b8d622fba4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modular/modular/commit/b20e749fa892dbe772e890a268002f732164d9f5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modular/modular/commit/ee9c4ab02345dd30bed8b79771b6909ff1b930a1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modular/modular"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modular/modular/blame/main/max/serve/kvcache_agent/kvcache_agent.py#L220"
  }, {
    "type" : "WEB",
    "url" : "https://www.oligo.security/blog/shadowmq-how-code-reuse-spread-critical-vulnerabilities-across-the-ai-ecosystem"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-18T22:08:39Z",
    "nvd_published_at" : "2025-11-18T19:15:49Z"
  }
}