ADVISORIES

Vulnerability

CVE-2026-32147

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.

14 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • AZL-84065

    CVE-2026-32147 affecting package erlang for versions less than 26.2.5.20-1

    CVE-2026-32147 Azure Linux Updated 12 November 2026
  • CNA-CVE-2026-32147

    SFTP chroot bypass via path traversal in SSH_FXP_FSETSTAT

    CVE-2026-32147 Erlang Updated 20 November 2026
  • DEBIAN-CVE-2026-32147

    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…

    CVE-2026-32147 Debian Updated 20 November 2026
  • DSA-6464-1

    erlang - security update

    CVE-2026-28808CVE-2026-28810CVE-2026-32144CVE-2026-32147 Debian Updated 20 November 2026
  • OESA-2026-2940

    erlang security update

    Medium CVE-2026-32147 openEuler Updated 18 August 2026
  • OESA-2026-2941

    erlang security update

    Medium CVE-2026-32147 openEuler Updated 18 August 2026
  • OESA-2026-3042

    erlang security update

    High CVE-2026-32147CVE-2026-48855CVE-2026-48856CVE-2026-48858 openEuler Updated 18 August 2026
  • SUSE-SU-2026:22082-1

    Security update for erlang

    CVE-2025-4748CVE-2026-32147CVE-2026-42789CVE-2026-42790 SUSE Updated 16 June 2026
  • SUSE-SU-2026:3951-1

    Security update for erlang

    CVE-2026-32147 SUSE Updated 10 September 2026
  • SUSEVEX-CVE-2026-32147

    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…

    Moderate CVE-2026-32147 SUSEopenSUSE Updated 13 November 2026
  • UBUNTU-CVE-2026-32147

    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…

    CVE-2026-32147 Ubuntu Updated 18 November 2026
  • USN-8901-1

    erlang vulnerabilities

    CVE-2025-26618CVE-2025-30211CVE-2025-4748CVE-2026-21620 Ubuntu Updated 8 October 2026
  • openSUSE-SU-2026:10947-1

    erlang27-27.1.3-2.1 on GA media

    CVE-2025-4748CVE-2025-48038CVE-2025-48039CVE-2026-21620 openSUSE Updated 4 June 2026
  • openSUSE-SU-2026:20907-1

    Security update for erlang

    CVE-2025-4748CVE-2026-32147CVE-2026-42789CVE-2026-42790 openSUSE Updated 9 June 2026

References