# CVE-2026-32147: SFTP chroot bypass via path traversal in SSH\_FXP\_FSETSTAT

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-21 · Modified: 2026-11-20
- Aliases: SUSE-SU-2026:3951-1, UBUNTU-CVE-2026-32147, DEBIAN-CVE-2026-32147
- Record: https://cvemate.com/vulnerability/CVE-2026-32147 · JSON: https://cvemate.com/vulnerability/CVE-2026-32147/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
- EPSS: 0.382%, percentile 34.35%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang (Debian): All versions (No fix recorded) \| \< 1:27.3.4.1+dfsg-1+deb13u3 \| \< 1:27.3.4.11+dfsg-1
- ubuntu erlang (Ubuntu): \< 1:16.b.3-dfsg-1ubuntu2.2+esm3 \| \< 1:18.3-dfsg-1ubuntu3.1+esm4 \| \< 1:20.2.2+dfsg-1ubuntu2+esm4 \| \< 1:22.2.7+dfsg-1ubuntu0.5+esm3 \| \< 1:24.2.1+dfsg-1ubuntu0.8 \| \< 1:25.3.2.8+dfsg-1ubuntu4.8 \| All versions (No fix recorded) \| \< 1:27.3.4.6+dfsg-1ubuntu0.2
- erlang erlang\\/otp: ≥ 17.0, \< 26.2.5.20 \| ≥ 27.0, \< 27.3.4.11 \| ≥ 28.0, \< 28.4.3
- erlang erlang\\/ssh: ≥ 3.0.1, \< 5.1.4.15 \| ≥ 5.2, \< 5.2.11.7 \| ≥ 5.5, \< 5.5.2
- erlang otp: ≥ 3.01 (No fix recorded) \| ≥ 17.0 (No fix recorded) \| ≥ 07b8f441ca711f9812fad9e9115bab3c3aa92f79, \< 28c5d5a6c5f873dc701b597276271763e7d1c004
- suse erlang&distro=SUSE Linux Enterprise Module for Server Applications 15 SP7 (SUSE Linux Enterprise): \< 23.3.4.19-150300.3.42.1

## References

- <https://github.com/erlang/otp/security/advisories/GHSA-28jg-mw9x-hpm5>
- <https://cna.erlef.org/cves/CVE-2026-32147.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-32147>
- <https://www.erlang.org/doc/system/versions.html#order-of-versions>
- <https://github.com/erlang/otp/commit/28c5d5a6c5f873dc701b597276271763e7d1c004>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20263951-1/>
- <https://bugzilla.suse.com/1262503>
- <https://www.suse.com/security/cve/CVE-2026-32147>
- <https://ubuntu.com/security/CVE-2026-32147>
- <https://www.cve.org/CVERecord?id=CVE-2026-32147>
- <https://ubuntu.com/security/notices/USN-8901-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-32147>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32147>
- <https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79>

---

Data as of 2026-12-05T06:50:50.704Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
