ADVISORIES

Vulnerability

CVE-2026-23942

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.

14 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • AZL-79874

    CVE-2026-23942 affecting package erlang for versions less than 26.2.5.18-1

    CVE-2026-23942 Azure Linux Updated 12 November 2026
  • CNA-CVE-2026-23942

    SFTP root escape via component-agnostic prefix check in ssh_sftpd

    CVE-2026-23942 Erlang Updated 20 November 2026
  • DEBIAN-CVE-2026-23942

    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…

    CVE-2026-23942 Debian Updated 20 November 2026
  • DLA-4590-1

    erlang - security update

    CVE-2026-21620CVE-2026-23941CVE-2026-23942CVE-2026-23943 Debian Updated 20 November 2026
  • OESA-2026-1665

    erlang security update

    High CVE-2026-23941CVE-2026-23942CVE-2026-23943 openEuler Updated 18 August 2026
  • OESA-2026-1666

    erlang security update

    High CVE-2026-23941CVE-2026-23942CVE-2026-23943 openEuler Updated 18 August 2026
  • OESA-2026-1667

    erlang security update

    High CVE-2026-23941CVE-2026-23942CVE-2026-23943 openEuler Updated 18 August 2026
  • OESA-2026-1668

    erlang security update

    High CVE-2026-23941CVE-2026-23942CVE-2026-23943 openEuler Updated 18 August 2026
  • OESA-2026-2704

    erlang security update

    Critical CVE-2026-21620CVE-2026-23941CVE-2026-23942CVE-2026-23943 openEuler Updated 18 August 2026
  • SUSEVEX-CVE-2026-23942

    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…

    Moderate CVE-2026-23942 SUSEopenSUSE Updated 13 November 2026
  • UBUNTU-CVE-2026-23942

    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…

    CVE-2026-23942 Ubuntu Updated 18 November 2026
  • USN-8901-1

    erlang vulnerabilities

    CVE-2025-26618CVE-2025-30211CVE-2025-4748CVE-2026-21620 Ubuntu Updated 8 October 2026
  • openSUSE-SU-2026:10947-1

    erlang27-27.1.3-2.1 on GA media

    CVE-2025-4748CVE-2025-48038CVE-2025-48039CVE-2026-21620 openSUSE Updated 4 June 2026
  • openSUSE-SU-2026:20607-1

    Security update for erlang

    CVE-2026-21620CVE-2026-23941CVE-2026-23942CVE-2026-23943 openSUSE Updated 24 April 2026

References