Erlang · Erlang/OTP · published 2026-03-13
CVE-2026-23942SFTP root escape via component-agnostic prefix check in ssh_sftpd
Routine No exploitation evidence; EPSS 0.4%.
CVE-2026-23942 is not known to be exploited in the wild. EPSS estimates a 0.4% chance of exploitation in the next 30 days, higher than 35% of all CVEs. This Erlang/OTP vulnerability: CVSS 5.3 (v4.0), attacks can be automated. Fixed upstream in Erlang/OTP 28.4.1, 27.3.4.9, 26.2.5.18. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in Erlang/OTP 28.4.1, 27.3.4.9, 26.2.5.18.
Patch events
Language runtimeErlang/OTP
Erlang/OTP security releases: 28.4.1, 27.3.4.9, 26.2.5.18
Upgrade to
28.4.127.3.4.926.2.5.18Why: Vendor security release for server software (most severe: CVE-2026-23941).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.4% (36th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 5.3 (v4.0)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 | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | Yes | CISA Vulnrichment |
| SSVC technical impact | partial | CISA Vulnrichment |
Affected versions (from the CVE record)#
- Erlang OTP
17.0to before*(affected)
- Erlang OTP
3.0.1to before*(affected)
- Erlang OTP
84adefa331c4159d432d22840663c38f155cd4c1to before*(affected)5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759to before*(unaffected)9e0ac85d3485e7898e0da88a14be0ee2310a3b28to before*(unaffected)27688a824f753d4c16371dc70e88753fb410590bto before*(unaffected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.