Lucene search
+L

CVE-2026-23942

🗓️ 13 Mar 2026 09:11:56Reported by EEFType 
cve
 cve
🔗 web.nvd.nist.gov👁 75 Views🌐 WEB

SFTP root escape due to prefix-based path check in ssh_sftpd enables path traversal to sibling directories.

Related
Detection
Affected
Refs
Paths
NVD
CNA
Node
OR
erlangerlang/otpRange17.026.2.5.18
erlangerlang/otpRange27.027.3.4.9
erlangerlang/otpRange28.028.4.1
erlangerlang/sshRange3.0.15.1.4.14
erlangerlang/sshRange5.25.2.11.6
erlangerlang/sshRange5.55.5.1
[
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unknown",
    "modules": [
      "ssh_sftpd"
    ],
    "packageName": "ssh",
    "packageURL": "pkg:otp/ssh?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%20https:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
    "product": "OTP",
    "programFiles": [
      "src/ssh_sftpd.erl"
    ],
    "programRoutines": [
      {
        "name": "ssh_sftpd:is_within_root/2"
      }
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "versions": [
      {
        "changes": [
          {
            "at": "5.5.1",
            "status": "unaffected"
          },
          {
            "at": "5.2.11.6",
            "status": "unaffected"
          },
          {
            "at": "5.1.4.14",
            "status": "unaffected"
          }
        ],
        "lessThan": "*",
        "status": "affected",
        "version": "3.0.1",
        "versionType": "otp"
      }
    ]
  },
  {
    "collectionURL": "https://github.com",
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "defaultStatus": "unknown",
    "modules": [
      "ssh_sftpd"
    ],
    "packageName": "erlang/otp",
    "packageURL": "pkg:github/erlang/otp",
    "product": "OTP",
    "programFiles": [
      "lib/ssh/src/ssh_sftpd.erl"
    ],
    "programRoutines": [
      {
        "name": "ssh_sftpd:is_within_root/2"
      }
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "versions": [
      {
        "changes": [
          {
            "at": "28.4.1",
            "status": "unaffected"
          },
          {
            "at": "27.3.4.9",
            "status": "unaffected"
          },
          {
            "at": "26.2.5.18",
            "status": "unaffected"
          }
        ],
        "lessThan": "*",
        "status": "affected",
        "version": "17.0",
        "versionType": "otp"
      },
      {
        "changes": [
          {
            "at": "27688a824f753d4c16371dc70e88753fb410590b",
            "status": "unaffected"
          },
          {
            "at": "9e0ac85d3485e7898e0da88a14be0ee2310a3b28",
            "status": "unaffected"
          },
          {
            "at": "5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759",
            "status": "unaffected"
          }
        ],
        "lessThan": "*",
        "status": "affected",
        "version": "84adefa331c4159d432d22840663c38f155cd4c1",
        "versionType": "git"
      }
    ]
  }
]
ParameterPositionPathDescriptionCWE
root_pathpathlib/ssh/src/ssh_sftpd.erl:is_within_root/2Path traversal via prefix matching in ssh_sftpd:is_within_root/2 allows access to sibling directories (e.g., /home/user10 or /home/user1_backup) that share a common prefix with the configured root.CWE-22
requested_pathpathlib/ssh/src/ssh_sftpd.erl:is_within_root/2Path traversal via prefix matching in ssh_sftpd:is_within_root/2 allows access to sibling directories (e.g., /home/user10 or /home/user1_backup) that share a common prefix with the configured root.CWE-22

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

24 Jul 2026 15:17Current
6.8Medium risk
Vulners AI Score6.8
CVSS 3.15.4
CVSS 45.3
EPSS0.00363
SSVC
75