CVE-2026-23942: SFTP root escape via component-agnostic prefix check in ssh_sftpd
CVE-2026-23942 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- High
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N· base score 5.3, scored by EEFAttack vector: network. Attack complexity: low. Attack requirements: none. Privileges required: low. User interaction: none. Confidentiality impact on the vulnerable system: low. Integrity impact on the vulnerable system: low. Availability impact on the vulnerable system: none. Confidentiality impact on subsequent systems: none. Integrity impact on subsequent systems: none. Availability impact on subsequent systems: none.- Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- EPSS
- 0.41% chance of exploitation in the next 30 days (35th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: yes. Technical impact: partial. CISA, .
- Vendor advisories
- 1 from NetApp
- Assigned by
- EEF (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-23942; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (EEF).
How do I fix CVE-2026-23942?
- Workaround: * Use OS-level chroot to run the Erlang VM/SFTP server process in an isolated filesystem environment. * Ensure that no sensitive or precious data is readable or writable by the OS user running the Erlang VM. * Ensure that the SFTP server port is not reachable from untrusted machines. * Use directory naming conventions that avoid common prefixes (e.g., /home/users/alice/ instead of /home/user1/). (CVE.org record)
Vendor advisories for CVE-2026-23942
NetApp
1 advisory- Advisory severityHigh7.0
High [CVE-2026-23941 +2] March 2026 Erlang/OTP Vulnerabilities in NetApp Products
NTAP-20260703-0005Source published Source updated
This bulletin covers 3 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Erlang/OTP versions 17.0 through 26.2.5.17, 27.0 through 27.3.4.8, and 28.0 through 28.4.1 are susceptible to vulnerabilities which when successfully exploited could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). Affected products: ONTAP tools for VMware vSphere 10. NetApp states there is no workaround available at this time.
- Affected products in this advisory
- ONTAP tools for VMware vSphere 10
- Source-reported affected versions
- 17.0
- 26.2.5.17
- 27.0
- 27.3.4.8
2 more entries in the full advisory.
- Source-reported fixed versions
- ONTAP tools for VMware vSphere 10: 10.5P2
- Mitigation guidance
- Update affected NetApp products to a fixed release: ONTAP tools for VMware vSphere 10: 10.5P2.
References
- CVE-2026-23942 recordCVE.org
- CVE-2026-23942 detailNVD
- SFTP root escape via component-agnostic prefix check in `ssh_sftpd`vendor-advisory, related
- EEF CNA record for CVE-2026-23942related
- OSV record EEF-CVE-2026-23942related
- Erlang/OTP version orderingx_version-scheme
- Fix commit 27688a8 in erlang/otppatch
- Fix commit 5ed603a in erlang/otppatch
- Fix commit 9e0ac85 in erlang/otppatch
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
More NetApp advisories
CVE-2026-99288Nov 18, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-98432Nov 2, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-64958Sep 11, 2026Apache CXF Vulnerability in NetApp ProductsCVE-2026-23066Sep 11, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-54225Sep 11, 2026Apache CXF Vulnerability in NetApp ProductsCVE-2025-58187Jun 12, 2026Golang Vulnerability in NetApp Products
Get an email when NetApp publishes the next one.
See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro.