SecurityContext

CVE-2026-23942: Erlang OTP - Path Traversal

  • Cve: CVE-2026-23942
  • Name: Erlang OTP - Path Traversal
  • Description: 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.
  • Impact: Authenticated users can access unauthorized directories, potentially exposing sensitive files outside the intended root directory.
  • Remediation: Update to OTP versions later than 28.4.1, 27.3.4.9, and 26.2.5.18 or the latest available version.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must be an authenticated user
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00408
  • Epss percentile: 0.35883
  • Assignee: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  • Published at: 2026-03-13T19:54:15Z
  • Age in days: 256
  • Modified at: 2026-11-20T06:17:22Z
  • Patch available: yes
  • References total: 7
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-23942
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590bPatch
https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759Patch
https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28Patch
https://cna.erlef.org/cves/CVE-2026-23942.htmlVendor Advisory
https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9hMitigation, Vendor Advisory
https://osv.dev/vulnerability/EEF-CVE-2026-23942Vendor Advisory
https://www.erlang.org/doc/system/versions.html#order-of-versionsProduct

Products

ProductAffectedPlatform boundSourcesUrl
erlang:erlang/otp>= 28.0, < 28.4.1; >= 27.0, < 27.3.4.9; >= 17.0, < 26.2.5.18nonvd/v1/products/erlang/erlang/otp
erlang:erlang/ssh>= 5.5, <= 5.5.1; >= 5.2, < 5.2.11.6; >= 3.0.1, < 5.1.4.14nonvd/v1/products/erlang/erlang/ssh

Projects

RepositoryLink kindsIndexedUrl
erlang/otpcommit, security_advisoryyes/v1/repositories/erlang/otp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts