CVE-2026-32147: Erlang OTP ssh - Path Traversal
- Cve: CVE-2026-32147
- Name: Erlang OTP ssh - Path Traversal
- Description: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to modify file attributes outside the configured chroot directory. The SFTP daemon (ssh_sftpd) stores the raw, user-supplied path in file handles instead of the chroot-resolved path. When SSH_FXP_FSETSTAT is issued on such a handle, file attributes (permissions, ownership, timestamps) are modified on the real filesystem path, bypassing the root directory boundary entirely. Any authenticated SFTP user on a server configured with the root option can modify file attributes of files outside the intended chroot boundary. The prerequisite is that a target file must exist on the real filesystem at the same relative path. Note that this vulnerability only allows modification of file attributes; file contents cannot be read or altered through this attack vector. If the SSH daemon runs as root, this enables direct privilege escalation: an attacker can set the setuid bit on any binary, change ownership of sensitive files, or make system configuration world-writable. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:do_open/4 and ssh_sftpd:handle_op/4. This issue affects OTP from OTP 17.0 before OTP 26.2.5.20, OTP 27.3.4.11, and OTP 28.4.3, corresponding to ssh from 3.0.1 before 5.1.4.15, 5.2.11.7, and 5.5.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.
- Impact: Authenticated SFTP users can modify file attributes outside chroot, enabling privilege escalation if SSH daemon runs as root.
- Remediation: Update to a version later than OTP 28.4.3, 27.3.4.11, or 26.2.5.20 or the latest available version.
- Vulnerability type: path_traversal
- Vulnerability impact: privilege_escalation, data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be an authenticated SFTP user with existing target files outside chroot.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.00382
- Epss percentile: 0.3295
- Assignee: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- Published at: 2026-04-21T12:15:58Z
- Age in days: 217
- Modified at: 2026-11-20T06:17:24Z
- Patch available: yes
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-32147
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| erlang:erlang/otp | >= 28.0, < 28.4.3; >= 27.0, < 27.3.4.11; >= 17.0, < 26.2.5.20 | no | nvd | /v1/products/erlang/erlang/otp |
| erlang:erlang/ssh | >= 5.5, < 5.5.2; >= 5.2, < 5.2.11.7; >= 3.0.1, < 5.1.4.15 | no | nvd | /v1/products/erlang/erlang/ssh |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| erlang/otp | cna_commit, commit, fix, security_advisory | yes | /v1/repositories/erlang/otp |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts