{"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["ssh_sftpd"],"packageName":"ssh","packageURL":"pkg:otp/ssh?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%20https:%2F%2Fgithub.com%2Ferlang%2Fotp.git","product":"OTP","programFiles":["src/ssh_sftpd.erl"],"programRoutines":[{"name":"ssh_sftpd:handle_op/4"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"6.0.2","status":"unaffected"},{"at":"5.5.2.2","status":"unaffected"},{"at":"5.2.11.9","status":"unaffected"}],"lessThan":"*","status":"affected","version":"3.0.1","versionType":"otp"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["ssh_sftpd"],"packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","product":"OTP","programFiles":["lib/ssh/src/ssh_sftpd.erl"],"programRoutines":[{"name":"ssh_sftpd:handle_op/4"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"29.0.3","status":"unaffected"},{"at":"28.5.0.3","status":"unaffected"},{"at":"27.3.4.14","status":"unaffected"}],"lessThan":"*","status":"affected","version":"17.0","versionType":"otp"},{"changes":[{"at":"059e5785ef8c1d423820ca633fb7b37f47645172","status":"unaffected"},{"at":"86622cfaacf57a02c7645d1999f946846b504c94","status":"unaffected"},{"at":"c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a","status":"unaffected"}],"lessThan":"*","status":"affected","version":"84adefa331c4159d432d22840663c38f155cd4c1","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The SFTP subsystem must be configured with the <tt>root</tt> option in <tt>ssh_sftpd:subsystem_spec/1</tt>, and the operator must rely on it to provide filesystem path isolation. The <tt>root</tt> option is not set by default.</p>"}],"value":"The 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."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.14","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"28.5.0.3","versionStartIncluding":"28.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"29.0.3","versionStartIncluding":"29.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Mohamed Ali IBNAL HAJALI / Ericsson"},{"lang":"en","type":"remediation developer","value":"Michał Wąsowski"},{"lang":"en","type":"remediation reviewer","value":"Jakub Witczak"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Observable Response Discrepancy vulnerability in Erlang OTP <tt>ssh</tt> (<tt>ssh_sftpd</tt> module) allows an authenticated SFTP user to enumerate the existence of files and directories outside the configured root directory.</p><p>The <tt>SSH_FXP_REALPATH</tt> handler in <tt>ssh_sftpd</tt> calls <tt>relate_file_name/3</tt> with <tt>Canonicalize=false</tt>, unlike every other SFTP operation handler. This allows <tt>..</tt> components in the requested path to bypass the <tt>is_within_root/2</tt> check without being resolved. The un-canonicalized path then enters <tt>resolve_symlinks/2</tt>, which walks up the directory tree above the configured root and issues <tt>read_link()</tt> syscalls on arbitrary filesystem paths.</p><p>An authenticated SFTP client can exploit this by sending a <tt>REALPATH</tt> request with a crafted traversal path. The server response differs depending on whether the target path exists on the host filesystem (<tt>SSH_FXP_NAME</tt> when the path resolves successfully, <tt>SSH_FX_NO_SUCH_FILE</tt> 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.</p><p>The 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.</p><p>This vulnerability is associated with program files <tt>lib/ssh/src/ssh_sftpd.erl</tt> and program routine <tt>ssh_sftpd:handle_op/4</tt>.</p><p>This issue affects OTP from OTP 17.0 until OTP 29.0.3, 28.5.0.3, and 27.3.4.14 corresponding to <tt>ssh</tt> from 3.0.1 until 6.0.2, 5.5.2.2, and 5.2.11.9.</p>"}],"value":"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 until OTP 29.0.3, 28.5.0.3, and 27.3.4.14 corresponding to ssh from 3.0.1 until 6.0.2, 5.5.2.2, and 5.2.11.9."}],"impacts":[{"capecId":"CAPEC-54","descriptions":[{"lang":"en","value":"CAPEC-54 Query System for Information"}]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-204","description":"CWE-204 Observable Response Discrepancy","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-07-02T16:06:03.802Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-h9pw-h5w4-h976"},{"tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-53422.html"},{"tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-53422"},{"tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"tags":["patch"],"url":"https://github.com/erlang/otp/commit/059e5785ef8c1d423820ca633fb7b37f47645172"},{"tags":["patch"],"url":"https://github.com/erlang/otp/commit/86622cfaacf57a02c7645d1999f946846b504c94"},{"tags":["patch"],"url":"https://github.com/erlang/otp/commit/c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a"}],"source":{"discovery":"EXTERNAL"},"title":"SFTP REALPATH path-existence oracle allowing filesystem enumeration outside configured root","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ul><li>Use OS-level chroot to run the Erlang VM or SFTP server process in an isolated filesystem environment, eliminating reliance on the application-level <tt>root</tt> option.</li><li>Ensure the SFTP server port on the machine running the Erlang/OTP SFTP server is not reachable from untrusted machines.</li><li>Ensure that no sensitive information (usernames, project names, mount topology) is inferrable from the existence or non-existence of paths on the host filesystem.</li></ul>"}],"value":"* 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."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-53422","datePublished":"2026-07-02T16:06:03.802Z","dateReserved":"2026-06-09T11:01:47.529Z","dateUpdated":"2026-07-02T16:06:03.802Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}