{"affected":[{"defaultStatus":"unknown","ecosystem":"software-id","packageName":"otp","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"changes":[{"at":"26.2.5.18","status":"unaffected"},{"at":"27.3.4.9","status":"unaffected"},{"at":"28.4.1","status":"unaffected"}],"lessThan":"*","status":"affected","version":"17.0","versionType":"otp"}]},{"defaultStatus":"unknown","ecosystem":"otp","packageName":"ssh","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"changes":[{"at":"5.1.4.14","status":"unaffected"},{"at":"5.2.11.6","status":"unaffected"},{"at":"5.5.1","status":"unaffected"}],"lessThan":"*","status":"affected","version":"3.0.1","versionType":"otp"}]},{"defaultStatus":"unknown","ecosystem":"github","packageName":"erlang/otp","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"changes":[{"at":"5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759","status":"unaffected"},{"at":"9e0ac85d3485e7898e0da88a14be0ee2310a3b28","status":"unaffected"},{"at":"27688a824f753d4c16371dc70e88753fb410590b","status":"unaffected"}],"lessThan":"*","status":"affected","version":"84adefa331c4159d432d22840663c38f155cd4c1","versionType":"git"},{"lessThan":"*","status":"unaffected","version":"5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759","versionType":"git"},{"lessThan":"*","status":"unaffected","version":"9e0ac85d3485e7898e0da88a14be0ee2310a3b28","versionType":"git"},{"lessThan":"*","status":"unaffected","version":"27688a824f753d4c16371dc70e88753fb410590b","versionType":"git"}]}],"cveId":"CVE-2026-23942","cwes":["CWE-22"],"description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.\n\nThis vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:is_within_root/2.\n\nThe 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.\n\nThis 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.","epss":{"date":"2026-11-10","percentile":0.35444,"score":0.00408},"exploits":[],"kev":null,"metrics":[{"score":5.3,"severity":"medium","source":"CNA: EEF","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","version":"4.0"}],"modifiedAt":1794426144004,"publishedAt":1773393116424,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-23942.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-23942"},{"source":"CNA: EEF","tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"* Use OS-level chroot to run the Erlang VM/SFTP server process in an isolated filesystem environment.\n* Ensure that no sensitive or precious data is readable or writable by the OS user running the Erlang VM.\n* Ensure that the SFTP server port is not reachable from untrusted machines.\n* Use directory naming conventions that avoid common prefixes (e.g., /home/users/alice/ instead of /home/user1/)."},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759"},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28"},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b"}],"revision":"e5fc995397e4e3c58260f9cfc4d43abd5594af0a79c369fef06f5fc63287b1d5","sources":[{"modifiedAt":1794426144004,"name":"CNA: EEF","retrievedAt":1794427749434,"url":"https://www.cve.org/CVERecord?id=CVE-2026-23942"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794427766832,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-23942"}],"ssvc":{"assessedAt":1773417751222,"automatable":"yes","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"SFTP root escape via component-agnostic prefix check in ssh_sftpd","updatedAt":1794427766832}