/

CVE-2026-107935

Severity:

CRITICAL RISK

(9.3)

Path Traversal (CWE-22) in gvproxy Expose Endpoint Handler

CVE-2026-107935

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Deletion

Severity:

CRITICAL RISK

(9.3)

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

A critical path traversal vulnerability in gvproxy's unauthenticated expose endpoint allows a caller to supply an attacker-controlled socket path. Under conditions where the endpoint can reach host filesystem paths, this may allow deletion of arbitrary files on the host system.

A critical path traversal vulnerability in gvproxy's unauthenticated expose endpoint allows a caller to supply an attacker-controlled socket path. Under conditions where the endpoint can reach host filesystem paths, this may allow deletion of arbitrary files on the host system.

Affected context

The vulnerability occurs in gvproxy, the network forwarder provided by the gvisor-tap-vsock package, when its /services/forwarder/expose endpoint processes caller-supplied socket paths without adequately restricting them to an intended directory or resource set. Deployments are most exposed when the endpoint is reachable by untrusted network clients and the forwarding service has sufficient host filesystem privileges.

The vulnerability occurs in gvproxy, the network forwarder provided by the gvisor-tap-vsock package, when its /services/forwarder/expose endpoint processes caller-supplied socket paths without adequately restricting them to an intended directory or resource set. Deployments are most exposed when the endpoint is reachable by untrusted network clients and the forwarding service has sufficient host filesystem privileges.

Exploit preconditions

  • Attack surface: The /services/forwarder/expose HTTP endpoint
  • Required access: Network reachability to the endpoint; authentication may not be required
  • Trigger point: Processing a caller-supplied socket path during an expose request
  • Why exploitation is possible: Insufficient path validation permits traversal outside the expected socket location, allowing file-removal behavior to target unintended host paths
  • Attack surface: The /services/forwarder/expose HTTP endpoint
  • Required access: Network reachability to the endpoint; authentication may not be required
  • Trigger point: Processing a caller-supplied socket path during an expose request
  • Why exploitation is possible: Insufficient path validation permits traversal outside the expected socket location, allowing file-removal behavior to target unintended host paths

Why this happens

The underlying bug is improper restriction and validation of a user-controlled filesystem path. Path traversal sequences or equivalent path forms can cause the resolved location to escape the intended directory, mapping to CWE-22: Improper Limitation of a Pathname to a Restricted Directory. The insecure pattern is accepting a path from an unauthenticated request and using it for filesystem deletion without canonicalization, directory confinement, and an allowlisted resource policy.

The underlying bug is improper restriction and validation of a user-controlled filesystem path. Path traversal sequences or equivalent path forms can cause the resolved location to escape the intended directory, mapping to CWE-22: Improper Limitation of a Pathname to a Restricted Directory. The insecure pattern is accepting a path from an unauthenticated request and using it for filesystem deletion without canonicalization, directory confinement, and an allowlisted resource policy.

Potential impact

  • Arbitrary files on the host may be deleted
  • The gvproxy service could be disrupted or rendered unavailable
  • Network forwarding and dependent workloads could be interrupted
  • Host or application data could be lost
  • Deletion of security-relevant files could weaken system protections
  • Arbitrary files on the host may be deleted
  • The gvproxy service could be disrupted or rendered unavailable
  • Network forwarding and dependent workloads could be interrupted
  • Host or application data could be lost
  • Deletion of security-relevant files could weaken system protections

General mitigation guidance

Mitigation generally focuses on removing trust in caller-supplied filesystem paths and enforcing a narrow resource policy.

Common defensive patterns include:

  • Restricting operations to server-generated socket identifiers rather than raw paths
  • Canonicalizing paths and enforcing confinement within a dedicated directory
  • Rejecting traversal components, symlink escapes, absolute paths, and unexpected path forms
  • Applying strict request authorization and network exposure controls
  • Running the forwarder with the minimum filesystem permissions required
  • Using dedicated, isolated runtime directories with restrictive ownership and permissions
  • Preferably avoiding deletion of arbitrary filesystem objects as part of a network-facing operation

Mitigation generally focuses on removing trust in caller-supplied filesystem paths and enforcing a narrow resource policy.

Common defensive patterns include:

  • Restricting operations to server-generated socket identifiers rather than raw paths
  • Canonicalizing paths and enforcing confinement within a dedicated directory
  • Rejecting traversal components, symlink escapes, absolute paths, and unexpected path forms
  • Applying strict request authorization and network exposure controls
  • Running the forwarder with the minimum filesystem permissions required
  • Using dedicated, isolated runtime directories with restrictive ownership and permissions
  • Preferably avoiding deletion of arbitrary filesystem objects as part of a network-facing operation

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis rules identifying filesystem deletion APIs that receive HTTP request parameters
  • Code review checks for missing canonicalization, directory confinement, or allowlist validation
  • Tests covering traversal sequences, absolute paths, symbolic links, and encoded path variants
  • Web-service policy checks requiring authentication and restricted network exposure for administrative endpoints
  • Runtime monitoring for unexpected file-removal events by the gvproxy process

Automated code review and application security tools may help identify untrusted data flows into filesystem operations.

Organizations can look for this class of issue through:

  • Static analysis rules identifying filesystem deletion APIs that receive HTTP request parameters
  • Code review checks for missing canonicalization, directory confinement, or allowlist validation
  • Tests covering traversal sequences, absolute paths, symbolic links, and encoded path variants
  • Web-service policy checks requiring authentication and restricted network exposure for administrative endpoints
  • Runtime monitoring for unexpected file-removal events by the gvproxy process

Automated code review and application security tools may help identify untrusted data flows into filesystem operations.

Sources

SourceLink
access.redhat.comaccess.redhat.com/security/cve/CVE-2026-107935
bugzilla.redhat.combugzilla.redhat.com/show_bug.cgi?id=2548382
github.comgithub.com/containers/gvisor-tap-vsock/pull/718
redhat.atlassian.netredhat.atlassian.net/browse/RHDESK-550

Frequently asked

questions

Yes, when the unauthenticated expose endpoint is reachable by an attacker and can process requests from an untrusted network source.

The described endpoint does not require authentication, but network reachability and any deployment-level access controls still determine practical exposure.

Avoid accepting raw filesystem paths from callers. Use server-controlled resource identifiers, enforce directory confinement, and apply least-privilege filesystem permissions.

Combine strict path validation with authenticated administrative interfaces, isolated runtime directories, security-focused tests, and monitoring for unexpected filesystem operations.

Yes, when the unauthenticated expose endpoint is reachable by an attacker and can process requests from an untrusted network source.

The described endpoint does not require authentication, but network reachability and any deployment-level access controls still determine practical exposure.

Avoid accepting raw filesystem paths from callers. Use server-controlled resource identifiers, enforce directory confinement, and apply least-privilege filesystem permissions.

Combine strict path validation with authenticated administrative interfaces, isolated runtime directories, security-focused tests, and monitoring for unexpected filesystem operations.

Find out what's already
exploitable in your codebase.