CVE-2026-23942 Details
Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:is_within_root/2. The SFTP server uses string prefix matching via lists:prefix/2 rather than proper path component validation when checking if a path is within the configured root directory. This allows authenticated users to access sibling directories that share a common name prefix with the configured root directory. For example, if root is set to /home/user1, paths like /home/user10 or /home/user1_backup would incorrectly be considered within the root. This issue affects OTP from OTP 17.0 before OTP 26.2.5.18, OTP 27.3.4.9, and OTP 28.4.1, corresponding to ssh from 3.0.1 before 5.1.4.14, 5.2.11.6, and 5.5.1. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.
A path traversal vulnerability has been identified in the SFTP server component of Erlang OTP, specifically within the ssh_sftpd module. This vulnerability arises from improper validation of file paths relative to the configured root directory, allowing authenticated users to access unintended directories. The issue is present in Erlang OTP versions 17.0 through 28.4.1, as well as in OTP 27.3.4.9 and OTP 26.2.5.18.
Users can update to Erlang OTP versions 28.4.1, 27.3.4.9, or 26.2.5.18, where this vulnerability has been patched. Additionally, for high-security deployments, consider using OS-level isolation mechanisms such as chroot jails, containers, or mandatory access control with SELinux or AppArmor.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-23942.html | EEF | Vendor Advisory |
| https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b | EEF | Patch |
| https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759 | EEF | Patch |
| https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28 | EEF | Patch |
| https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h | EEF | MitigationVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-23942 | EEF | Vendor Advisory |
| https://www.erlang.org/doc/system/versions.html#order-of-versions | EEF | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | EEF |
Affected Products
| Product | Versions |
|---|---|
| erlang erlang/otp | >= 17.0, < 26.2.5.18 >= 27.0, < 27.3.4.9 >= 28.0, < 28.4.1 |
CPE
Remediation
| |
| erlang erlang/ssh | >= 3.0.1, < 5.1.4.14 >= 5.2, < 5.2.11.6 >= 5.5, <= 5.5.1 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | EEF |
| Nov 11, 2026 | CVE Modified | EEF |
| Jul 24, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 21, 2026 | Initial Analysis | [email protected] |
| Apr 6, 2026 | CVE Modified | EEF |
| Mar 13, 2026 | New CVE Received | EEF |