CVE-2026-32147: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Erlang OTP
CVE-2026-32147 is a path traversal vulnerability in the Erlang OTP ssh_sftpd module that allows authenticated SFTP users to modify file attributes outside the configured chroot directory. This occurs because the SFTP daemon stores raw user-supplied paths rather than chroot-resolved paths in file handles. Exploiting this, an attacker can change permissions, ownership, or timestamps of files outside the intended restricted directory. If the SSH daemon runs as root, this can lead to privilege escalation by setting the setuid bit on binaries or altering sensitive system files' ownership or permissions. The vulnerability affects Erlang OTP versions from 17. 0 up to 28. 4. 3 and related ssh versions. No official patch or remediation guidance is currently confirmed.
AI Analysis
Technical Summary
The vulnerability in Erlang OTP's ssh_sftpd module (CVE-2026-32147) is a path traversal issue (CWE-22) that allows an authenticated SFTP user to bypass chroot directory restrictions when modifying file attributes. The root cause is that the ssh_sftpd daemon stores the raw user-supplied path in file handles instead of the chroot-resolved path. When the SSH_FXP_FSETSTAT operation is performed on such a handle, file attributes like permissions, ownership, and timestamps can be altered on the actual filesystem path outside the chroot jail. This flaw affects OTP versions from 17.0 through 28.4.3 and corresponding ssh versions. The vulnerability can lead to privilege escalation if the SSH daemon runs with root privileges, enabling attackers to set the setuid bit or change ownership of critical files. The vulnerability is rated medium severity with a CVSS 4.0 score of 5.3. No patch or official remediation level is currently provided.
Potential Impact
Authenticated SFTP users can modify file attributes outside the intended chroot directory, potentially altering permissions, ownership, and timestamps of arbitrary files on the filesystem. If the SSH daemon runs as root, this can lead to privilege escalation by enabling attackers to set the setuid bit on binaries or change ownership and permissions of sensitive system files. The vulnerability does not allow reading or modifying file contents, only file attribute changes. This can undermine system security and integrity by enabling unauthorized privilege escalation and system configuration changes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider restricting SSH daemon privileges, avoiding running ssh_sftpd as root, or disabling SFTP services if feasible. Monitor vendor channels for updates and apply patches promptly once available.
CVE-2026-32147: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Erlang OTP
Description
CVE-2026-32147 is a path traversal vulnerability in the Erlang OTP ssh_sftpd module that allows authenticated SFTP users to modify file attributes outside the configured chroot directory. This occurs because the SFTP daemon stores raw user-supplied paths rather than chroot-resolved paths in file handles. Exploiting this, an attacker can change permissions, ownership, or timestamps of files outside the intended restricted directory. If the SSH daemon runs as root, this can lead to privilege escalation by setting the setuid bit on binaries or altering sensitive system files' ownership or permissions. The vulnerability affects Erlang OTP versions from 17. 0 up to 28. 4. 3 and related ssh versions. No official patch or remediation guidance is currently confirmed.
CVSS v4.0
Score 5.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Erlang OTP's ssh_sftpd module (CVE-2026-32147) is a path traversal issue (CWE-22) that allows an authenticated SFTP user to bypass chroot directory restrictions when modifying file attributes. The root cause is that the ssh_sftpd daemon stores the raw user-supplied path in file handles instead of the chroot-resolved path. When the SSH_FXP_FSETSTAT operation is performed on such a handle, file attributes like permissions, ownership, and timestamps can be altered on the actual filesystem path outside the chroot jail. This flaw affects OTP versions from 17.0 through 28.4.3 and corresponding ssh versions. The vulnerability can lead to privilege escalation if the SSH daemon runs with root privileges, enabling attackers to set the setuid bit or change ownership of critical files. The vulnerability is rated medium severity with a CVSS 4.0 score of 5.3. No patch or official remediation level is currently provided.
Potential Impact
Authenticated SFTP users can modify file attributes outside the intended chroot directory, potentially altering permissions, ownership, and timestamps of arbitrary files on the filesystem. If the SSH daemon runs as root, this can lead to privilege escalation by enabling attackers to set the setuid bit on binaries or change ownership and permissions of sensitive system files. The vulnerability does not allow reading or modifying file contents, only file attribute changes. This can undermine system security and integrity by enabling unauthorized privilege escalation and system configuration changes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider restricting SSH daemon privileges, avoiding running ssh_sftpd as root, or disabling SFTP services if feasible. Monitor vendor channels for updates and apply patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-03-10T22:37:29.213Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e76a9219fe3cd2cdcd3204
Added to database: 4/21/2026, 12:16:18 PM
Last enriched: 4/29/2026, 11:49:28 AM
Last updated: 6/3/2026, 8:13:32 AM
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.