# CVE-2026-53422: SFTP REALPATH path-existence oracle allowing filesystem enumeration outside configured root

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.3
- **CVSS:** 2.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: Low; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.43% (percentile 30, 2026-11-26)
- **CWE:** CWE-204
- **Published:** 2026-07-02T16:06:03.802Z
- **Modified:** 2026-11-20T06:17:30.183Z

## Who should check

- Anyone running Erlang OTP \>= 3.0.1, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< \*

## 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 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.

## Affected and fixed versions

- Erlang OTP: \>= 3.0.1, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< \* (cvelist)

## Mitigation

- Vendor workaround: \* 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.
- \* Ensure the SFTP server port on the machine running the Erlang/OTP SFTP server is not reachable from untrusted machines.
- \* Ensure that no sensitive information (usernames, project names, mount topology) is inferrable from the existence or non-existence of paths on the host filesystem.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53422. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53422.md
Affected: Erlang OTP >= 3.0.1, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < *
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53422 being exploited?

There is no confirmed exploitation: CVE-2026-53422 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53422?

Low: CVSS 2.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-53422?

Erlang OTP \>= 3.0.1, \< \*; Erlang OTP \>= 17.0, \< \*; Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< \*.

### Is there a fix for CVE-2026-53422?

No fixed version is listed in the sources yet. Vendor workaround: \* 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. \* Ensure the SFTP server port on the machine running the Erlang/OTP SFTP server is not reachable from untrusted machines. \* Ensure that no sensitive information (usernames, project names, mount topology) is inferrable from the existence or non-existence of paths on the host filesystem.

### How do I check if I'm affected by CVE-2026-53422?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-h9pw-h5w4-h976>
- vendor: <https://cna.erlef.org/cves/CVE-2026-53422.html>
- patch: <https://github.com/erlang/otp/commit/059e5785ef8c1d423820ca633fb7b37f47645172>
- patch: <https://github.com/erlang/otp/commit/86622cfaacf57a02c7645d1999f946846b504c94>
- patch: <https://github.com/erlang/otp/commit/c5a8f50ae68888ff243c5c741a06d2b3a4b48b7a>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-53422>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53422>

HTML: <https://flawdb.com/CVE-2026-53422> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53422>
