SecurityContext

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

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/erlang/otp/commit/28c5d5a6c5f873dc701b597276271763e7d1c004Patch
https://cna.erlef.org/cves/CVE-2026-32147.htmlVendor Advisory
https://github.com/erlang/otp/security/advisories/GHSA-28jg-mw9x-hpm5Vendor Advisory
https://osv.dev/vulnerability/EEF-CVE-2026-32147Third Party Advisory
https://www.erlang.org/doc/system/versions.html#order-of-versionsProduct
https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79

Products

ProductAffectedPlatform boundSourcesUrl
erlang:erlang/otp>= 28.0, < 28.4.3; >= 27.0, < 27.3.4.11; >= 17.0, < 26.2.5.20nonvd/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.15nonvd/v1/products/erlang/erlang/ssh

Projects

RepositoryLink kindsIndexedUrl
erlang/otpcna_commit, commit, fix, security_advisoryyes/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