CVE-2026-23942: Erlang Erlang/otp
Medium severity, CVSS 5.4. EPSS: 0.5% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Erlang Erlang/otp, from 17.0, before 26.2.5.18: fixed in 26.2.5.18
- Erlang Erlang/otp, from 27.0, before 27.3.4.9: fixed in 27.3.4.9
- Erlang Erlang/otp, from 28.0, before 28.4.1: fixed in 28.4.1
- Erlang Erlang/ssh, from 3.0.1, before 5.1.4.14: fixed in 5.1.4.14
- Erlang Erlang/ssh, from 5.2, before 5.2.11.6: fixed in 5.2.11.6
Affected products
- Erlang Erlang/otp: from 17.0, before 26.2.5.18 (fixed in 26.2.5.18); from 27.0, before 27.3.4.9 (fixed in 27.3.4.9); from 28.0, before 28.4.1 (fixed in 28.4.1)
- Erlang Erlang/ssh: from 3.0.1, before 5.1.4.14 (fixed in 5.1.4.14); from 5.2, before 5.2.11.6 (fixed in 5.2.11.6); from 5.5, up to and including 5.5.1
Published 2026-03-13. Last modified 2026-11-20.