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 intended chroot directory. This occurs because the SFTP daemon stores raw user-supplied paths rather than chroot-resolved paths in file handles. Exploitation requires authentication and the presence of target files at the same relative path outside the chroot. The vulnerability permits modification of file attributes such as permissions and ownership but does not allow reading or altering file contents. If the SSH daemon runs as root, attackers can escalate privileges by setting setuid bits or changing ownership of sensitive files. This affects Erlang OTP versions from 17. 0 up to 28. 4. 3 and related ssh versions. No official patch or remediation guidance is currently provided.
AI Analysis
Technical Summary
The vulnerability in Erlang OTP's ssh_sftpd module (CVE-2026-32147) arises from improper limitation of pathname to a restricted directory (CWE-22). The SFTP daemon stores raw user-supplied paths in file handles instead of paths resolved within the chroot jail. When an SSH_FXP_FSETSTAT request is made on such a handle, file attributes on the actual filesystem path outside the chroot can be modified. This allows authenticated SFTP users to bypass directory restrictions and alter file attributes like permissions and ownership on files outside the chroot boundary. The vulnerability affects OTP versions 17.0 through 28.4.3 and corresponding ssh versions. Exploitation requires authentication and the existence of files at matching relative paths outside the chroot. The issue can lead to privilege escalation if the SSH daemon runs with root privileges.
Potential Impact
Authenticated SFTP users on affected Erlang OTP servers configured with the root option can modify file attributes outside the chroot directory, potentially changing permissions, ownership, and timestamps of arbitrary files. This does not allow reading or modifying file contents. If the SSH daemon runs as root, attackers can escalate privileges by setting setuid bits on binaries or altering ownership of sensitive files, potentially compromising system security. The CVSS 4.0 score is 5.3 (medium severity), reflecting the need for authentication and limited scope to attribute modification.
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, avoid running ssh_sftpd as root, and carefully configure chroot environments to minimize risk. Monitoring for unusual attribute changes on critical files may help detect exploitation attempts.
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 intended chroot directory. This occurs because the SFTP daemon stores raw user-supplied paths rather than chroot-resolved paths in file handles. Exploitation requires authentication and the presence of target files at the same relative path outside the chroot. The vulnerability permits modification of file attributes such as permissions and ownership but does not allow reading or altering file contents. If the SSH daemon runs as root, attackers can escalate privileges by setting setuid bits or changing ownership of sensitive files. This affects Erlang OTP versions from 17. 0 up to 28. 4. 3 and related ssh versions. No official patch or remediation guidance is currently provided.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Erlang OTP's ssh_sftpd module (CVE-2026-32147) arises from improper limitation of pathname to a restricted directory (CWE-22). The SFTP daemon stores raw user-supplied paths in file handles instead of paths resolved within the chroot jail. When an SSH_FXP_FSETSTAT request is made on such a handle, file attributes on the actual filesystem path outside the chroot can be modified. This allows authenticated SFTP users to bypass directory restrictions and alter file attributes like permissions and ownership on files outside the chroot boundary. The vulnerability affects OTP versions 17.0 through 28.4.3 and corresponding ssh versions. Exploitation requires authentication and the existence of files at matching relative paths outside the chroot. The issue can lead to privilege escalation if the SSH daemon runs with root privileges.
Potential Impact
Authenticated SFTP users on affected Erlang OTP servers configured with the root option can modify file attributes outside the chroot directory, potentially changing permissions, ownership, and timestamps of arbitrary files. This does not allow reading or modifying file contents. If the SSH daemon runs as root, attackers can escalate privileges by setting setuid bits on binaries or altering ownership of sensitive files, potentially compromising system security. The CVSS 4.0 score is 5.3 (medium severity), reflecting the need for authentication and limited scope to attribute modification.
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, avoid running ssh_sftpd as root, and carefully configure chroot environments to minimize risk. Monitoring for unusual attribute changes on critical files may help detect exploitation attempts.
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/21/2026, 12:31:05 PM
Last updated: 4/21/2026, 1:26:09 PM
Views: 3
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.