Vulnerabilities in pkg:pypi/tensorzero

PACKAGE
Advisory Identifier: GHSA-824w-x939-6cmc
Advisory Summary

CVE-2026-54457 is a HIGH (CVSS 7.7) arbitrary file read and ssrf vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting TensorZero Gateway libraries in the PyPI ecosystem. The issue involves arbitrary file read and ssrf in internal object storage endpoint. Remediation is available by upgrading affected packages to version 2026.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/tensorzero

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-824w-x939-6cmc CVE-2026-54457 HIGH TensorZero Gateway: Arbitrary file read and SSRF in internal object storage endpoint

CVE-2026-54457 at a Glance

CVE Identifier CVE-2026-54457
GHSA Identifier GHSA-824w-x939-6cmc
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product TensorZero Gateway
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

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

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

How to Fix CVE-2026-54457

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

tensorzero fixed: 2026.6.0
pip install tensorzero>=2026.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 tensorzero

How to Check if You Are Affected

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

pip show tensorzero

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In TensorZero Gateway, 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

### Impact The `/internal/object_storage` endpoint accepts a caller-supplied JSON `storage_path` parameter that dynamically overrides the TensorZero `[object_storage]` configuration. By abusing the `filesystem` storage type, a caller can read arbitrary files from the gateway filesystem, including files that may contain sensitive credentials. Similarly, by abusing the `s3_compatible` storage type, the caller can coerce the gateway into making outbound object storage requests to attacker-chosen internal/cloud-metadata endpoints. This vulnerability only applies when the gateway can be accessed by untrusted callers. If a developer's TensorZero deployment has authentication enabled, only authenticated callers can exploit this vulnerability. If a developer's deployment has authentication disabled, any caller can exploit this vulnerability. ### Remediation The vulnerability has been patched in version `2026.6.0`. See PR #7527. ### Workarounds If developers are unable to upgrade a gateway that is exposed to untrusted callers, please block external access to the `/internal/object_storage` endpoint.

CVE-2026-54457 Affected TensorZero Gateway Versions

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

References

Frequently Asked Questions

What is CVE-2026-54457?
CVE-2026-54457 is a security vulnerability in TensorZero Gateway involving Arbitrary file read and SSRF in internal object storage endpoint under CWE-552: Files or Directories Accessible to External Parties.
Which TensorZero Gateway versions are affected?
Affected versions include releases prior to 2026.6.0 across affected packages: tensorzero.
What version fixes CVE-2026-54457?
Upgrading to 2026.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tensorzero affected?
Yes, tensorzero is affected in releases prior to 2026.6.0. Upgrade your dependency to 2026.6.0 or later.
What is the CVSS score of CVE-2026-54457?
CVE-2026-54457 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-54457?
CVE-2026-54457 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check PyPI dependencies for CVE-2026-54457?
Run the dependency tree command: 'pip show tensorzero'. 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-824w-x939-6cmc",
  "modified" : "2026-07-15T21:59:40Z",
  "published" : "2026-07-15T21:59:40Z",
  "aliases" : [ "CVE-2026-54457" ],
  "summary" : "TensorZero Gateway: Arbitrary file read and SSRF in internal object storage endpoint",
  "details" : "### Impact\n\nThe `/internal/object_storage` endpoint accepts a caller-supplied JSON `storage_path` parameter that dynamically overrides the TensorZero `[object_storage]` configuration.\n\nBy abusing the `filesystem` storage type, a caller can read arbitrary files from the gateway filesystem, including files that may contain sensitive credentials. Similarly, by abusing the `s3_compatible` storage type, the caller can coerce the gateway into making outbound object storage requests to attacker-chosen internal/cloud-metadata endpoints.\n\nThis vulnerability only applies when the gateway can be accessed by untrusted callers. If a developer's TensorZero deployment has authentication enabled, only authenticated callers can exploit this vulnerability. If a developer's deployment has authentication disabled, any caller can exploit this vulnerability.\n\n### Remediation\n\nThe vulnerability has been patched in version `2026.6.0`. See PR #7527.\n\n### Workarounds\n\nIf developers are unable to upgrade a gateway that is exposed to untrusted callers, please block external access to the `/internal/object_storage` endpoint.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "tensorzero"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tensorzero/tensorzero/security/advisories/GHSA-824w-x939-6cmc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tensorzero/tensorzero/commit/0abbc838bae3394fe7491dad7009670d4e3b6cf8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tensorzero/tensorzero"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tensorzero/tensorzero/releases/tag/2026.6.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-15T21:59:40Z",
    "nvd_published_at" : null
  }
}