CVE-2026-53422: CWE-204 Observable Response Discrepancy in Erlang OTP
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. The 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. An 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. 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. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_op/4. This issue affects OTP from OTP 17.0 before OTP 29.0.3, OTP 28.5.0.3 and OTP 27.3.4.14, corresponding to ssh from 3.0.1 before 6.0.2, 5.5.2.2 and 5.2.11.9.
AI Analysis
Technical Summary
The vulnerability arises because the SSH_FXP_REALPATH handler in the ssh_sftpd module calls relate_file_name/3 with Canonicalize=false, unlike other SFTP handlers. This allows '..' path components to bypass the is_within_root/2 check without resolution, enabling traversal above the configured root directory. The un-canonicalized path is then processed by resolve_symlinks/2, which performs read_link() syscalls on arbitrary filesystem paths. An authenticated SFTP client can exploit this by sending a crafted REALPATH request and observe different server responses (SSH_FXP_NAME if the path exists, SSH_FX_NO_SUCH_FILE if it does not), creating an oracle to enumerate filesystem structure outside the root. The vulnerability only reveals existence information, not file contents or credentials, but this information could aid further attacks. Affected versions include Erlang OTP from 17.0 before 29.0.3, 28.5.0.3, and 27.3.4.14, and ssh from 3.0.1 before 6.0.2, 5.5.2.2, and 5.2.11.9.
Potential Impact
An authenticated SFTP user can enumerate the existence of files and directories outside the configured root directory on the server. This information disclosure does not include file contents, credentials, or write access. The leaked path existence information may assist attackers in planning further attacks by revealing sensitive filesystem structure details.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, limit SFTP user privileges and monitor for suspicious SFTP activity. Since the vulnerability requires authentication, controlling access to SFTP accounts reduces risk.
CVE-2026-53422: CWE-204 Observable Response Discrepancy in Erlang OTP
Description
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. The 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. An 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. 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. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_op/4. This issue affects OTP from OTP 17.0 before OTP 29.0.3, OTP 28.5.0.3 and OTP 27.3.4.14, corresponding to ssh from 3.0.1 before 6.0.2, 5.5.2.2 and 5.2.11.9.
CVSS v4.0
Score 2.3low
Affected software
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the SSH_FXP_REALPATH handler in the ssh_sftpd module calls relate_file_name/3 with Canonicalize=false, unlike other SFTP handlers. This allows '..' path components to bypass the is_within_root/2 check without resolution, enabling traversal above the configured root directory. The un-canonicalized path is then processed by resolve_symlinks/2, which performs read_link() syscalls on arbitrary filesystem paths. An authenticated SFTP client can exploit this by sending a crafted REALPATH request and observe different server responses (SSH_FXP_NAME if the path exists, SSH_FX_NO_SUCH_FILE if it does not), creating an oracle to enumerate filesystem structure outside the root. The vulnerability only reveals existence information, not file contents or credentials, but this information could aid further attacks. Affected versions include Erlang OTP from 17.0 before 29.0.3, 28.5.0.3, and 27.3.4.14, and ssh from 3.0.1 before 6.0.2, 5.5.2.2, and 5.2.11.9.
Potential Impact
An authenticated SFTP user can enumerate the existence of files and directories outside the configured root directory on the server. This information disclosure does not include file contents, credentials, or write access. The leaked path existence information may assist attackers in planning further attacks by revealing sensitive filesystem structure details.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, limit SFTP user privileges and monitor for suspicious SFTP activity. Since the vulnerability requires authentication, controlling access to SFTP accounts reduces risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-09T11:01:47.529Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a46a8b727e9c79719cc4aa5
Added to database: 07/02/2026, 18:06:47 UTC
Last enriched: 07/24/2026, 21:36:54 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.