CVE-2026-23942
published medium CVSS 4.0 · 5.3SFTP root escape via component-agnostic prefix check in ssh_sftpd
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Erlang | — | sshOTP · 3.0.1 and later (affected · otp); changes: unaffected at 5.1.4.14, unaffected at 5.2.11.6, unaffected at 5.5.1 · Other versions: unknown | Version-specific | Not stated | EEF |
| Erlang | — | otpOTP · 17.0 and later (affected · otp); changes: unaffected at 26.2.5.18, unaffected at 27.3.4.9, unaffected at 28.4.1 · Other versions: unknown | Version-specific | Not stated | EEF |
| Erlang | — | erlang/otpOTP · 84adefa331c4159d432d22840663c38f155cd4c1 and later (affected · git); changes: unaffected at 27688a824f753d4c16371dc70e88753fb410590b, unaffected at 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759, unaffected at 9e0ac85d3485e7898e0da88a14be0ee2310a3b28 · 27688a824f753d4c16371dc70e88753fb410590b and later (unaffected · git) · 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759 and later (unaffected · git) · 9e0ac85d3485e7898e0da88a14be0ee2310a3b28 and later (unaffected · git) · Other versions: unknown | Version-specific | Not stated | EEF |
| Debian | bullseye | erlang | Advisory build | 1:23.2.6+dfsg-1+deb11u4 | DLA-4590-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlangaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlangppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlangs390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlangx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | erlang-epmdaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlang-epmdppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlang-epmds390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP4 | erlang-epmdx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlangaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlangppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlangs390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlangx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlang-epmdaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlang-epmdppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlang-epmds390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP5 | erlang-epmdx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlangaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlangppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlangs390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlangx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang-epmdaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang-epmdppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang-epmds390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang-epmdx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26aarch64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26ppc64le | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26s390x | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26x86_64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26-epmdaarch64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26-epmdppc64le | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26-epmds390x | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP6 | erlang26-epmdx86_64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlangaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlangppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlangs390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlangx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang-epmdaarch64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang-epmdppc64le | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang-epmds390x | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang-epmdx86_64 | Advisory build | 23.3.4.19-150300.3.32.1 | SUSE-SU-2026:1714-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26aarch64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26ppc64le | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26s390x | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26x86_64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26-epmdaarch64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26-epmdppc64le | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26-epmds390x | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-15-SP7 | erlang26-epmdx86_64 | Advisory build | 26.2.1-150300.7.25.1 | SUSE-SU-2026:2010-1 |
| SUSE / openSUSE | SLE-16 | erlangaarch64 | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlangppc64le | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlangs390x | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlangx86_64 | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlang-epmdaarch64 | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlang-epmdppc64le | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlang-epmds390x | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | SLE-16 | erlang-epmdx86_64 | Advisory build | 27.1.3-160000.4.1 | SUSE-SU-2026:21374-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlangaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlangppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlangs390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlangx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debuggeraarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debuggerppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debuggers390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debuggerx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debugger-srcaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debugger-srcppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debugger-srcs390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-debugger-srcx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzeraarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzerppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzers390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzerx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzer-srcaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzer-srcppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzer-srcs390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-dialyzer-srcx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameteraarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameterppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameters390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameterx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameter-srcaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameter-srcppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameter-srcs390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-diameter-srcx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-docaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-docppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-docx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-epmdaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-epmdppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-epmds390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-epmdx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-etaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-etppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-ets390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-etx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-et-srcaarch64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-et-srcppc64le | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-et-srcs390x | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | erlang-et-srcx86_64 | Advisory build | 27.1.3-160000.4.1 | OPENSUSE-SU-2026:20607-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Erlang | OTP | 3.0.1 and later (affected · otp); changes: unaffected at 5.1.4.14, unaffected at 5.2.11.6, unaffected at 5.5.1Default: unknown | EEF · cna |
| Erlang | OTP | 17.0 and later (affected · otp); changes: unaffected at 26.2.5.18, unaffected at 27.3.4.9, unaffected at 28.4.1Default: unknown | EEF · cna |
| Erlang | OTP | 84adefa331c4159d432d22840663c38f155cd4c1 and later (affected · git); changes: unaffected at 27688a824f753d4c16371dc70e88753fb410590b, unaffected at 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759, unaffected at 9e0ac85d3485e7898e0da88a14be0ee2310a3b2827688a824f753d4c16371dc70e88753fb410590b and later (unaffected · git)5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759 and later (unaffected · git)9e0ac85d3485e7898e0da88a14be0ee2310a3b28 and later (unaffected · git)Default: unknown | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
7- EEF CNA record for CVE-2026-23942 https://cna.erlef.org/cves/CVE-2026-23942.html
- Fix commit 27688a8 in erlang/otp https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b
- Fix commit 5ed603a in erlang/otp https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759
- Fix commit 9e0ac85 in erlang/otp https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28
- SFTP root escape via component-agnostic prefix check in `ssh_sftpd` https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h
- OSV record EEF-CVE-2026-23942 https://osv.dev/vulnerability/EEF-CVE-2026-23942
- Erlang/OTP version ordering https://www.erlang.org/doc/system/versions.html#order-of-versions
Provider assertions
2EEF · cna
SFTP root escape via component-agnostic prefix check in ssh_sftpd
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c0d8a4df92e9be1e5dda2481c9e45cef49183b98eb2f58ad62873747ef1b060a
- Ingested
- 20 Nov 2026, 06:03:31 UTC
- Source record
- Official CVE record