{"id":"CVE-2026-53422","aliases":["CVE-2026-53422","EEF-CVE-2026-53422","GHSA-h9pw-h5w4-h976"],"related":[],"kind":"vulnerability","state":"published","title":"SFTP REALPATH path-existence oracle allowing filesystem enumeration outside configured root","summary":"Observable Response Discrepancy vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to enumerate the existence of files and directories outside the configured root directory.\n\nThe SSH_FXP_REALPATH handler in ssh_sftpd calls relate_file_name/3 with Canonicalize=false, unlike every other SFTP operation handler. This allows .. components in the requested path to bypass the is_within_root/2 check without being resolved. The un-canonicalized path then enters resolve_symlinks/2, which walks up the directory tree above the configured root and issues read_link() syscalls on arbitrary filesystem paths.\n\nAn authenticated SFTP client can exploit this by sending a REALPATH request with a crafted traversal path. The server response differs depending on whether the target path exists on the host filesystem (SSH_FXP_NAME when the path resolves successfully, SSH_FX_NO_SUCH_FILE when it does not). This creates a path-existence oracle that an attacker can use to enumerate the filesystem structure outside the configured root, including the existence of sensitive files, directories, and mount points.\n\nThe vulnerability leaks only the existence of paths. No file contents, credentials, or write access are obtainable through this issue alone. The information gained may assist further attacks when combined with other vulnerabilities.\n\nThis vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_op/4.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssh from 3.0.1 before 5.2.11.9, 5.5.2.2, and 6.0.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Observable Response Discrepancy vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to enumerate the existence of files and directories outside the configured root directory.\n\nThe SSH_FXP_REALPATH handler in ssh_sftpd calls relate_file_name/3 with Canonicalize=false, unlike every other SFTP operation handler. This allows .. components in the requested path to bypass the is_within_root/2 check without being resolved. The un-canonicalized path then enters resolve_symlinks/2, which walks up the directory tree above the configured root and issues read_link() syscalls on arbitrary filesystem paths.\n\nAn authenticated SFTP client can exploit this by sending a REALPATH request with a crafted traversal path. The server response differs depending on whether the target path exists on the host filesystem (SSH_FXP_NAME when the path resolves successfully, SSH_FX_NO_SUCH_FILE when it does not). This creates a path-existence oracle that an attacker can use to enumerate the filesystem structure outside the configured root, including the existence of sensitive files, directories, and mount points.\n\nThe vulnerability leaks only the existence of paths. No file contents, credentials, or write access are obtainable through this issue alone. The information gained may assist further attacks when combined with other vulnerabilities.\n\nThis vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_op/4.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssh from 3.0.1 before 5.2.11.9, 5.5.2.2, and 6.0.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nObservable Response Discrepancy vulnerability in Erlang OTP `ssh` (`ssh_sftpd` module) allows an authenticated SFTP user to enumerate the existence of files and directories outside the configured root directory.\n\nThe `SSH_FXP_REALPATH` handler in `ssh_sftpd` calls `relate_file_name/3` with `Canonicalize=false`, unlike every other SFTP operation handler. This allows `..` components in the requested path to bypass the `is_within_root/2` check without being resolved. The un-canonicalized path then enters `resolve_symlinks/2`, which walks up the directory tree above the configured root and issues `read_link()` syscalls on arbitrary filesystem paths.\n\nAn authenticated SFTP client can exploit this by sending a `REALPATH` request with a crafted traversal path. The server response differs depending on whether the target path exists on the host filesystem (`SSH_FXP_NAME` when the path resolves successfully, `SSH_FX_NO_SUCH_FILE` when it does not). This creates a path-existence oracle that an attacker can use to enumerate the filesystem structure outside the configured root, including the existence of sensitive files, directories, and mount points.\n\nThe vulnerability leaks only the existence of paths. No file contents, credentials, or write access are obtainable through this issue alone. The information gained may assist further attacks when combined with other vulnerabilities.\n\nThis vulnerability is associated with program files `lib/ssh/src/ssh_sftpd.erl` and program routine `ssh_sftpd:handle_op/4`.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssh from 3.0.1 before 5.2.11.9, 5.5.2.2, and 6.0.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.\n\n## Workarounds\n\n* Use OS-level chroot to run the Erlang VM or SFTP server process in an isolated filesystem environment, eliminating reliance on the application-level `root` option.\n* Ensure the SFTP server port on the machine running the Erlang/OTP SFTP server is not reachable from untrusted machines.\n* Ensure that no sensitive information (usernames, project names, mount topology) is inferrable from the existence or non-existence of paths on the host filesystem.\n\n## Configurations\n\nThe SFTP subsystem must be configured with the `root` option in `ssh_sftpd:subsystem_spec/1`, and the operator must rely on it to provide filesystem path isolation. The `root` option is not set by default.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de Discrepancia de Respuesta Observable en Erlang OTP ssh (módulo ssh_sftpd) permite a un usuario SFTP autenticado enumerar la existencia de archivos y directorios fuera del directorio raíz configurado.\n\nEl gestor SSH_FXP_REALPATH en ssh_sftpd llama a relate_file_name/3 con Canonicalize=false, a diferencia de cualquier otro gestor de operación SFTP. Esto permite que los componentes ’..’ en la ruta solicitada eludan la verificación is_within_root/2 sin ser resueltos. La ruta no canonizada luego entra en resolve_symlinks/2, que asciende por el árbol de directorios por encima de la raíz configurada y emite llamadas al sistema read_link() en rutas de sistema de archivos arbitrarias.\n\nUn cliente SFTP autenticado puede explotar esto enviando una solicitud REALPATH con una ruta de recorrido manipulada. La respuesta del servidor difiere dependiendo de si la ruta objetivo existe en el sistema de archivos del host (SSH_FXP_NAME cuando la ruta se resuelve con éxito, SSH_FX_NO_SUCH_FILE cuando no lo hace). Esto crea un oráculo de existencia de rutas que un atacante puede usar para enumerar la estructura del sistema de archivos fuera de la raíz configurada, incluyendo la existencia de archivos sensibles, directorios y puntos de montaje.\n\nLa vulnerabilidad solo filtra la existencia de rutas. No se pueden obtener contenidos de archivos, credenciales o acceso de escritura a través de este problema por sí solo. La información obtenida puede ayudar a futuros ataques cuando se combina con otras vulnerabilidades.\n\nEsta vulnerabilidad está asociada con los archivos de programa lib/ssh/src/ssh_sftpd.erl y la rutina de programa ssh_sftpd:handle_op/4.\n\nEste problema afecta a OTP desde OTP 17.0 hasta OTP 29.0.3, 28.5.0.3 y 27.3.4.14 correspondiente a ssh desde 3.0.1 hasta 6.0.2, 5.5.2.2 y 5.2.11.9.","source":"nvd"}],"published":"2026-07-02T16:06:03.802Z","modified":"2026-11-25T06:30:24.827Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-204"],"affected":[{"ranges":[{"type":"otp","introduced":"3.0.1","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"ssh","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"otp","introduced":"17.0","fixed":"*","status":"affected"}],"vendor":"Erlang","product":"OTP","package":"otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"84adefa331c4159d432d22840663c38f155cd4c1","fixed":"*","status":"affected"},{"type":"git","introduced":"059e5785ef8c1d423820ca633fb7b37f47645172","fixed":"*","status":"unaffected"},{"type":"git","introduced":"86622cfaacf57a02c7645d1999f946846b504c94","fixed":"*","status":"unaffected"},{"type":"git","introduced":"c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a","fixed":"*","status":"unaffected"}],"vendor":"Erlang","product":"OTP","package":"erlang/otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","repo":"https://github.com/erlang/otp","source":"cvelist"},{"ranges":[{"type":"git","introduced":"84adefa331c4159d432d22840663c38f155cd4c1","status":"affected","fixed":"059e5785ef8c1d423820ca633fb7b37f47645172"},{"type":"git","status":"affected","fixed":"86622cfaacf57a02c7645d1999f946846b504c94"},{"type":"git","status":"affected","fixed":"c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a"}],"repo":"https://github.com/erlang/otp","source":"eef"},{"ranges":[{"status":"affected","introduced":"17.0","fixed":"27.3.4.14"},{"status":"affected","introduced":"28.0","fixed":"28.5.0.3"},{"status":"affected","introduced":"29.0","fixed":"29.0.3"}],"vendor":"erlang","product":"erlang/otp","cpe":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"3.0.1","fixed":"5.2.11.9"},{"status":"affected","introduced":"5.3","fixed":"5.5.2.2"},{"status":"affected","introduced":"6.0","fixed":"6.0.2"}],"vendor":"erlang","product":"erlang/ssh","cpe":"cpe:2.3:a:erlang:erlang\\/ssh:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-h9pw-h5w4-h976","tags":["advisory","mitigation","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-53422.html","tags":["mitigation","related","vendor-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-53422","tags":["mitigation","related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["release-notes","web","x-version-scheme"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/059e5785ef8c1d423820ca633fb7b37f47645172","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/86622cfaacf57a02c7645d1999f946846b504c94","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/erlang/otp/commit/c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]}],"credits":["Mohamed Ali IBNAL HAJALI / Ericsson","Michał Wąsowski","Jakub Witczak"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-02T17:29:13.490Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53422","url":"https://www.cve.org/CVERecord?id=CVE-2026-53422","licence":"CVE Terms of Use","modified":"2026-11-20T05:58:01.088Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-53422","url":"https://osv.dev/vulnerability/EEF-CVE-2026-53422","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:24.827Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53422","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53422","licence":"Public domain","modified":"2026-11-20T06:17:30.183Z"}],"updatedAt":"2026-11-25T22:59:27.042Z","epss":{"score":0.00345,"percentile":0.30032,"date":"2026-12-01T12:00:22.000Z"}}