/

CVE-2026-48099

Severity:

HIGH RISK

(7.1)

Path Traversal (CWE-22) in WsgiDAV WebDAV File Server

CVE-2026-48099

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Access

Severity:

HIGH RISK

(7.1)

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 path traversal vulnerability in WsgiDAV can allow a crafted WebDAV request path containing an encoded parent-directory segment to bypass the configured filesystem share root. Under a specific path layout, an attacker who can reach the WebDAV endpoint may access files outside the intended share.

Affected context

The issue occurs in WsgiDAV deployments that expose a WebDAV filesystem share and process request paths containing encoded parent-directory segments. Exploitation depends on the configured filesystem layout and path-resolution behavior, so not every deployment is necessarily affected in the same way.

Exploit preconditions

  • Attack surface: An exposed WsgiDAV WebDAV endpoint
  • Required access: Network access to the WebDAV service; authentication requirements depend on deployment configuration
  • Trigger point: Request path resolution involving an encoded parent-directory segment
  • Why exploitation is possible: Path canonicalization and share-root enforcement may permit the resolved path to escape the configured filesystem root under a particular directory layout

Why this happens

The vulnerability is caused by insufficient normalization and validation of WebDAV request paths before filesystem access is performed. When encoded traversal components are not consistently decoded, canonicalized, and checked against the configured share root, a path may resolve outside the intended directory. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • An attacker may read files outside the configured WebDAV share
  • Sensitive configuration, credentials, or application data could be exposed
  • Unauthorized file metadata or directory contents may be disclosed
  • In deployments with write access, an attacker could potentially modify files outside the intended root
  • Further compromise may be possible if exposed files contain executable content or secrets

General mitigation guidance

Mitigation generally focuses on enforcing the share root after complete path normalization and reducing trust in client-supplied path representations.

Common defensive patterns include:

  • Canonicalizing and consistently decoding request paths before authorization checks
  • Verifying that the resolved target remains within the configured filesystem root
  • Rejecting traversal markers and ambiguous path encodings
  • Applying least-privilege permissions to the WebDAV service account
  • Restricting write access and separating WebDAV content from sensitive application directories
  • Using deny-by-default access controls and narrowly scoped share configurations

How teams detect issues like this

Organizations can look for path traversal risks through:

  • Static analysis of path joins, decoding, normalization, and share-root validation
  • Code review checks for authorization performed before canonicalization
  • Tests covering encoded separators, parent-directory segments, alternate path forms, and boundary paths
  • Web server and application monitoring for requests containing encoded traversal indicators
  • Policy enforcement requiring filesystem confinement checks before file operations
  • Automated security testing that validates access cannot cross configured directory boundaries

Sources

SourceLink
github.comgithub.com/mar10/wsgidav/commit/f894ed8656d7bdd7438ab8148c5a02546cb15183
github.comgithub.com/mar10/wsgidav/security/advisories/GHSA-wxq4-cc2q-338q
github.comgithub.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2026-3428.yaml

Frequently asked

questions

It may be remotely exploitable when the WsgiDAV WebDAV endpoint is network-accessible and the request reaches an affected path-resolution flow.

Authentication requirements depend on the deployment. Any account or network access required by the WebDAV configuration may be sufficient if it permits requests to the affected share.

Ensure paths are fully decoded and canonicalized before authorization, then verify that the resolved path remains within the configured share root.

Use strict filesystem confinement, reject ambiguous path encodings, apply least privilege, and include encoded traversal cases in code review and automated security tests.

Find out what's already
exploitable in your codebase.