CVE-2026-23942Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.
Updated under an hour ago ()
Does this affect you?
It affects erlang/otp and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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 28.4.1, OTP 27.3.4.9 and OTP 26.2.5.18, corresponding to ssh from 3.0.1 before 5.5.1, 5.2.11.6 and 5.1.4.14.
- CVSS
- 5.4 MEDIUM (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Weakness (CWE)
- CWE-22
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Not given
- NVD analysis
- Modified
- Record last updated
- Jul 24, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
erlang erlang/otp erlang:erlang/otp | from 17.0 before 26.2.5.18; from 27.0 before 27.3.4.9; from 28.0 before 28.4.1 | NVD |
erlang erlang/ssh erlang:erlang/ssh | from 3.0.1 before 5.1.4.14; from 5.2 before 5.2.11.6; from 5.5 through 5.5.1 | NVD |
References
- https://cna.erlef.org/cves/CVE-2026-23942.htmlvendor-advisory
- https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590bpatch
- https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759patch
- https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28patch
- https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9hmitigation, vendor-advisory
- https://osv.dev/vulnerability/EEF-CVE-2026-23942vendor-advisory
- https://www.erlang.org/doc/system/versions.html#order-of-versionsproduct
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.