/

CVE-2026-54457

Severity:

HIGH RISK

(7.7)

Path Traversal (CWE-552) in TensorZero Object Storage

CVE-2026-54457

Awaiting Analysis

Vulnerability type

Category:

Arbitrary File Read and Server-Side Request Forgery

CWE:

CWE-552, CWE-918

Impact:

Sensitive File Disclosure and Server-Side Request Forgery

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

TensorZero's internal object-storage endpoint allows a caller-supplied storage path to override configured storage settings. Depending on the selected storage type, an attacker with gateway access may read arbitrary files from the gateway filesystem or cause requests to attacker-chosen internal and cloud-metadata endpoints.

Affected context

The issue occurs in TensorZero Gateway deployments where the /internal/object_storage endpoint is reachable and accepts a caller-controlled JSON storage_path parameter. Risk depends on whether the endpoint is exposed without authentication or to users who can invoke it, and on the gateway's filesystem permissions and network access. Filesystem-backed storage can expose local files, while S3-compatible storage can enable outbound requests to internal services or cloud metadata endpoints.

Exploit preconditions

  • Attack surface: TensorZero Gateway /internal/object_storage endpoint
  • Required access: Ability to reach and invoke the endpoint; authentication depends on deployment configuration
  • Trigger point: Processing of a request containing a caller-controlled storage_path
  • Why exploitation is possible: The endpoint dynamically uses caller-supplied storage configuration instead of restricting requests to trusted, preconfigured storage locations

Why this happens

The underlying bug is insufficient separation between trusted object-storage configuration and untrusted request data. Allowing a request parameter to dynamically select storage types and paths can bypass intended filesystem and network boundaries. This behavior maps primarily to CWE-552: Files or Directories Accessible to External Parties, because protected local files may become readable, and also relates to CWE-918: Server-Side Request Forgery, because attacker-controlled storage settings can influence outbound requests.

Potential impact

  • Sensitive local files may be disclosed
  • Credential material or service configuration may be exposed
  • Requests may be sent to internal administrative services
  • Cloud instance metadata or temporary credentials could be accessed
  • Internal network topology and service information may be revealed
  • Compromised credentials could enable further system or cloud-account access

General mitigation guidance

Mitigation generally focuses on keeping storage configuration server-controlled and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Restricting storage type, bucket, endpoint, and path values to validated server-side configuration
  • Applying allowlists for permitted object-storage destinations and network schemes
  • Preventing access to sensitive filesystem locations through dedicated storage roots and path canonicalization
  • Blocking requests to loopback, link-local, private, and cloud-metadata address ranges where outbound access is unnecessary
  • Applying network egress controls and least-privilege credentials to gateway workloads
  • Requiring authentication and authorization for internal gateway endpoints
  • Using separate identities and narrowly scoped permissions for object-storage operations

How teams detect issues like this

Detection can combine application, infrastructure, and source-code review controls:

  • Use static analysis to identify request parameters that influence filesystem paths, storage clients, URLs, or endpoint selection
  • Review code for dynamic configuration overrides and missing allowlists around object-storage parameters
  • Monitor gateway requests for unusual storage types, filesystem paths, internal destinations, and metadata-service addresses
  • Log denied path and outbound-network requests without recording sensitive file contents or credentials
  • Enforce network policies that restrict gateway egress and alert on attempts to reach private or link-local ranges
  • Use automated security review tools to flag file-access and SSRF data flows during development

Sources

SourceLink
github.comgithub.com/tensorzero/tensorzero/commit/0abbc838bae3394fe7491dad7009670d4e3b6cf8
github.comgithub.com/tensorzero/tensorzero/releases/tag/2026.6.0
github.comgithub.com/tensorzero/tensorzero/security/advisories/GHSA-824w-x939-6cmc

Frequently asked

questions

It can be exploitable over the network when the TensorZero Gateway endpoint is reachable by an attacker. The practical scope depends on deployment exposure, authentication, authorization, and network controls.

The attacker must be able to invoke /internal/object_storage. This may require authentication in some deployments, while misconfigured or unauthenticated deployments may expose the endpoint more broadly.

Do not allow callers to override trusted storage configuration. Restrict storage destinations and filesystem roots through server-side allowlists, and enforce authorization and outbound network controls.

Treat storage paths and endpoints as security-sensitive inputs, validate them against explicit policies, isolate gateway permissions, restrict egress, and continuously monitor file-access and internal-request behavior.

Find out what's already
exploitable in your codebase.