CVE-2026-23942

EUVD-2026-11778
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 until OTP 28.4.1, OTP 27.3.4.9 and OTP 26.2.5.18, corresponding to ssh from 3.0.1 until 5.5.1, 5.2.11.6 and 5.1.4.14.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.4 MEDIUM
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 11%
Affected Products (NVD)
VendorProductVersion
erlangerlang/otp
17.0 ≤
𝑥
< 26.2.5.18
erlangerlang/otp
27.0 ≤
𝑥
< 27.3.4.9
erlangerlang/otp
28.0 ≤
𝑥
< 28.4.1
erlangerlang/ssh
3.0.1 ≤
𝑥
< 5.1.4.14
erlangerlang/ssh
5.2 ≤
𝑥
< 5.2.11.6
erlangerlang/ssh
5.5 ≤
𝑥
≤ 5.5.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
erlang
bookworm
1:25.2.3+dfsg-1+deb12u4
fixed
bookworm (security)
vulnerable
bullseye
vulnerable
bullseye (security)
1:23.2.6+dfsg-1+deb11u4
fixed
forky
1:27.3.4.12+dfsg-1
fixed
sid
1:29.0.2+dfsg-1
fixed
trixie
1:27.3.4.1+dfsg-1+deb13u2
fixed
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
erlang
suse enterprise sap 15 SP4
23.3.4.19-150300.3.32.1
fixed
suse enterprise sap 15 SP5
23.3.4.19-150300.3.32.1
fixed
suse enterprise sap 15 SP7
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP4
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP5
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP6
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP7
23.3.4.19-150300.3.32.1
fixed
erlang-epmd
suse enterprise sap 15 SP4
23.3.4.19-150300.3.32.1
fixed
suse enterprise sap 15 SP5
23.3.4.19-150300.3.32.1
fixed
suse enterprise sap 15 SP7
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP4
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP5
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP6
23.3.4.19-150300.3.32.1
fixed
suse enterprise server 15 SP7
23.3.4.19-150300.3.32.1
fixed
erlang26
suse enterprise sap 15 SP7
26.2.1-150300.7.25.1
fixed
suse enterprise server 15 SP6
26.2.1-150300.7.25.1
fixed
suse enterprise server 15 SP7
26.2.1-150300.7.25.1
fixed
erlang26-epmd
suse enterprise sap 15 SP7
26.2.1-150300.7.25.1
fixed
suse enterprise server 15 SP6
26.2.1-150300.7.25.1
fixed
suse enterprise server 15 SP7
26.2.1-150300.7.25.1
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
erlang
Azure Linux 3.0
0:26.2.5.18-1.azl3
fixed
CBL-Mariner 2.0
0:25.3.2.21-5.cm2
fixed