CVE-2026-32147

SFTP chroot bypass via path traversal in SSH_FXP_FSETSTAT

5.3 medium EPSS 0.46%

Published 21 Apr 2026 Updated 20 Nov 2026 CNA: EEF

Check your servers for CVE-2026-32147

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-32147 affects otp, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

5.3 medium CVSS 4.0 from EEF (CNA)
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
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Attack requirements
none: an attack works without special conditions on the target
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality none, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity low, availability none: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.46%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 32.1% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 21 Apr 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

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

Affected products

As the CNA lists them.

ProductVersions
OTP
package ssh
affected 3.0.1 and later (unaffected from 5.1.4.15, unaffected from 5.2.11.7, unaffected from 5.5.2)
Other versions: unknown
OTP
package otp
affected 17.0 and later (unaffected from 26.2.5.20, unaffected from 27.3.4.11, unaffected from 28.4.3)
Other versions: unknown
OTP
package erlang/otp
affected from 07b8f441ca711f9812fad9e9115bab3c3aa92f79, before 28c5d5a6c5f873dc701b597276271763e7d1c004
unaffected 28c5d5a6c5f873dc701b597276271763e7d1c004 and later
Other versions: unknown

Is my server affected?

Find the installed version of otp and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i otp
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-32147 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-32147

RHEL, Rocky, Alma, Fedora

rpm -q otp
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-32147

Alpine

apk list --installed | grep -i otp

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-32147
trivy image --scanners vuln IMAGE | grep CVE-2026-32147

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Other references

Source: the record CVE-2026-32147 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.