Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer

CVE-2026-23942

medium

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.

Vendor / product: Erlang — erlang\/otp

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.

CVSS
5.4
5.4 (CVSS v3.1)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2026-03-13 19:54
Modified: 2026-11-11 20:17
NVD status: Modified
Last synced 5 hours ago
Verified against the source API 2026-11-11 20:41 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).

Affected products

erlang / erlang\/otp ≥17.0 <26.2.5.18, ≥27.0 <27.3.4.9, ≥28.0 <28.4.1
erlang / erlang\/ssh ≥3.0.1 <5.1.4.14, ≥5.2 <5.2.11.6, ≥5.5 ≤5.5.1

Weakness classification (CWE)

Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.

Mitigation & advisories

Vendor advisory: https://cna.erlef.org/cves/CVE-2026-23942.html
Vendor advisory: https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h
Vendor advisory: https://osv.dev/vulnerability/EEF-CVE-2026-23942
Patch / mitigation: https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590b
Patch / mitigation: https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759
Patch / mitigation: https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28
Patch / mitigation: https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9h

References

Data sources

NVD CVE API 2.0 — fetched 2026-11-11 20:41 UTC · record ↗

Learn the basics

Understanding CVEs and CVSS Scores

Related CVEs