CVE-2026-32147

MediumCVSS 4.3/10Last modified Nov 11, 2026

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.

Metrics

CVSS 3.1 4.3/10CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Weakness enumeration

Affected software

VendorProductVersions
ErlangOTP>= 17.0, < *
ErlangOTP>= 3.0.1, < *
ErlangOTP>= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < 28c5d5a6c5f873dc701b597276271763e7d1c004

References

Timeline

Published
Apr 21, 2026
Last modified
Nov 11, 2026
NVD status
Modified

Related CVEs from 2026

CVE-2026-321485.9Insufficient Verification of Data Authenticity vulnerability in hexpm hex (Hex.RemoteConverger module) allows dependency integrity bypass viCVE-2026-321497.3Improper input validation in Windows Hyper-V allows an authorized attacker to execute code locally.CVE-2026-32155.4Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal Islandora allows Cross-Site ScrCVE-2026-321507.0Concurrent execution using shared resource with improper synchronization ('race condition') in Function Discovery Service (fdwsd.dll) allowsCVE-2026-321516.5Exposure of sensitive information to an unauthorized actor in Windows Shell allows an authorized attacker to disclose information over a netCVE-2026-321527.8Use after free in Desktop Window Manager allows an authorized attacker to elevate privileges locally.CVE-2026-321537.8Use after free in Microsoft Windows Speech allows an authorized attacker to elevate privileges locally.CVE-2026-321547.8Use after free in Desktop Window Manager allows an authorized attacker to elevate privileges locally.CVE-2026-321557.8Use after free in Desktop Window Manager allows an authorized attacker to elevate privileges locally.CVE-2026-321567.4Use after free in Windows Universal Plug and Play (UPnP) Device Host allows an unauthorized attacker to execute code locally.CVE-2026-321578.8Use after free in Remote Desktop Client allows an unauthorized attacker to execute code over a network.CVE-2026-321587.8Concurrent execution using shared resource with improper synchronization ('race condition') in Windows Push Notifications allows an authoriz
CVE-2026-32147: Medium severity, CVSS 4.3 | Vulnix