CVEMETERBack to radar
OFFICIAL RECORD · Erlang/Elixir

CVE-2026-23942

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 5.3 · medium

SFTP root escape via component-agnostic prefix check in ssh_sftpd

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.408% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 5.3 · published by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Assessment source · checked 2026-11-19T12:41:35.955Z

CVSS 4.0 · 5.3 · published by EEF
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
Assessment source · checked 2026-11-19T12:58:14.845Z

CVSS 4.0 · 5.3 · published by Ubuntu Security
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
Assessment source · checked 2026-11-19T12:50:34.285Z

CVSS 3.1 · 5.4 · published by [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:41:35.955Z

CVSS 3.1 · 5.4 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:50:34.285Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:41:35.955ZNVD
epssverified2026-11-19T16:04:47.776ZFIRST EPSS
patchesverified2026-11-19T12:50:34.285ZUbuntu Security
affectedverified2026-11-19T12:58:14.845ZCVE Program
lifecycleverified2026-11-19T12:58:14.845ZCVE Program

Affected versions and configuration

Erlang OTP; modules: ssh_sftpd; default status: unknown: 17.0 to < * [affected; scheme: otp]; changes: [{"at":"26.2.5.18","status":"unaffected"},{"at":"27.3.4.9","status":"unaffected"},{"at":"28.4.1","status":"unaffected"}] Erlang OTP; modules: ssh_sftpd; default status: unknown: 3.0.1 to < * [affected; scheme: otp]; changes: [{"at":"5.1.4.14","status":"unaffected"},{"at":"5.2.11.6","status":"unaffected"},{"at":"5.5.1","status":"unaffected"}] Erlang OTP; modules: ssh_sftpd; default status: unknown: 84adefa331c4159d432d22840663c38f155cd4c1 to < * [affected; scheme: git]; changes: [{"at":"5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759","status":"unaffected"},{"at":"9e0ac85d3485e7898e0da88a14be0ee2310a3b28","status":"unaffected"},{"at":"27688a824f753d4c16371dc70e88753fb410590b","status":"unaffected"}]; 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759 to < * [unaffected; scheme: git]; 9e0ac85d3485e7898e0da88a14be0ee2310a3b28 to < * [unaffected; scheme: git]; 27688a824f753d4c16371dc70e88753fb410590b to < * [unaffected; scheme: git]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "vendor": "Erlang",
      "modules": [
        "ssh_sftpd"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "changes": [
            {
              "at": "26.2.5.18",
              "status": "unaffected"
            },
            {
              "at": "27.3.4.9",
              "status": "unaffected"
            },
            {
              "at": "28.4.1",
              "status": "unaffected"
            }
          ],
          "version": "17.0",
          "lessThan": "*",
          "versionType": "otp"
        }
      ],
      "packageURL": "pkg:software-id/erlang.org/otp",
      "packageName": "otp",
      "programFiles": [
        "lib/ssh/src/ssh_sftpd.erl"
      ],
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "ssh_sftpd:is_within_root/2"
        }
      ]
    },
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/erlang/otp",
      "vendor": "Erlang",
      "modules": [
        "ssh_sftpd"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "changes": [
            {
              "at": "5.1.4.14",
              "status": "unaffected"
            },
            {
              "at": "5.2.11.6",
              "status": "unaffected"
            },
            {
              "at": "5.5.1",
              "status": "unaffected"
            }
          ],
          "version": "3.0.1",
          "lessThan": "*",
          "versionType": "otp"
        }
      ],
      "packageURL": "pkg:otp/ssh?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
      "packageName": "ssh",
      "programFiles": [
        "src/ssh_sftpd.erl"
      ],
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "ssh_sftpd:is_within_root/2"
        }
      ]
    },
    {
      "cpes": [
        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/erlang/otp",
      "vendor": "Erlang",
      "modules": [
        "ssh_sftpd"
      ],
      "product": "OTP",
      "versions": [
        {
          "status": "affected",
          "changes": [
            {
              "at": "5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759",
              "status": "unaffected"
            },
            {
              "at": "9e0ac85d3485e7898e0da88a14be0ee2310a3b28",
              "status": "unaffected"
            },
            {
              "at": "27688a824f753d4c16371dc70e88753fb410590b",
              "status": "unaffected"
            }
          ],
          "version": "84adefa331c4159d432d22840663c38f155cd4c1",
          "lessThan": "*",
          "versionType": "git"
        },
        {
          "status": "unaffected",
          "version": "5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759",
          "lessThan": "*",
          "versionType": "git"
        },
        {
          "status": "unaffected",
          "version": "9e0ac85d3485e7898e0da88a14be0ee2310a3b28",
          "lessThan": "*",
          "versionType": "git"
        },
        {
          "status": "unaffected",
          "version": "27688a824f753d4c16371dc70e88753fb410590b",
          "lessThan": "*",
          "versionType": "git"
        }
      ],
      "packageURL": "pkg:github/erlang/otp",
      "packageName": "erlang/otp",
      "programFiles": [
        "lib/ssh/src/ssh_sftpd.erl"
      ],
      "collectionURL": "https://github.com",
      "defaultStatus": "unknown",
      "programRoutines": [
        {
          "name": "ssh_sftpd:is_within_root/2"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-23942",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-03-13T16:02:31.222384Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-03-13T16:02:38.388Z"
      }
    }
  ]
}
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "erlang",
    "debian": "https://tracker.debian.org/pkg/erlang",
    "source": "https://ubuntu.com/security/cve?package=erlang",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=erlang",
    "statuses": [
      {
        "pocket": "esm-infra",
        "status": "released",
        "component": null,
        "description": "1:20.2.2+dfsg-1ubuntu2+esm4",
        "release_codename": "bionic"
      },
      {
        "pocket": "esm-infra",
        "status": "released",
        "component": null,
        "description": "1:22.2.7+dfsg-1ubuntu0.5+esm3",
        "release_codename": "focal"
      },
      {
        "pocket": "security",
        "status": "ignored",
        "component": null,
        "description": "end of life, was needs-triage",
        "release_codename": "questing"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:24.2.1+dfsg-1ubuntu0.8",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:27.3.4.9+dfsg-1",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:25.3.2.8+dfsg-1ubuntu4.8",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "1:27.3.4.6+dfsg-1ubuntu0.2",
        "release_codename": "resolute"
      },
      {
        "pocket": "esm-infra-legacy",
        "status": "released",
        "component": null,
        "description": "1:16.b.3-dfsg-1ubuntu2.2+esm3",
        "release_codename": "trusty"
      },
      {
        "pocket": "esm-infra-legacy",
        "status": "released",
        "component": null,
        "description": "1:18.3-dfsg-1ubuntu3.1+esm4",
        "release_codename": "xenial"
      }
    ]
  }
]
Archived source JSON
NVD · nvd-cpe · full conditions
[
  {
    "nodes": [
      {
        "negate": false,
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "6241E245-67D2-4FA6-83FE-4E9A4A07B3D1",
            "versionEndExcluding": "26.2.5.18",
            "versionStartIncluding": "17.0"
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "BE60BA92-431E-4DE3-A1C1-E8976E3A6BA7",
            "versionEndExcluding": "27.3.4.9",
            "versionStartIncluding": "27.0"
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "B8D9E80B-CA20-423A-A1A8-DEBB99D82BDB",
            "versionEndExcluding": "28.4.1",
            "versionStartIncluding": "28.0"
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/ssh:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "24FD89BF-28BB-4432-9FDA-F0D84B5F716C",
            "versionEndExcluding": "5.1.4.14",
            "versionStartIncluding": "3.0.1"
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/ssh:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "C0BFA1FA-14CC-4A47-A6A3-2572BA686367",
            "versionEndExcluding": "5.2.11.6",
            "versionStartIncluding": "5.2"
          },
          {
            "criteria": "cpe:2.3:a:erlang:erlang\\/ssh:*:*:*:*:*:*:*:*",
            "vulnerable": true,
            "matchCriteriaId": "0ABFC1FB-435C-414A-BF43-B119730E3DCE",
            "versionEndIncluding": "5.5.1",
            "versionStartIncluding": "5.5"
          }
        ],
        "operator": "OR"
      }
    ]
  }
]
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / bionicerlangesm-infra1:20.2.2+dfsg-1ubuntu2+esm4Official record
distribution-packageUbuntu / focalerlangesm-infra1:22.2.7+dfsg-1ubuntu0.5+esm3Official record
distribution-packageUbuntu / jammyerlangsecurity1:24.2.1+dfsg-1ubuntu0.8Official record
upstream-noteupstream / upstreamerlangNot a distribution channel1:27.3.4.9+dfsg-1Official record
distribution-packageUbuntu / nobleerlangsecurity1:25.3.2.8+dfsg-1ubuntu4.8Official record
distribution-packageUbuntu / resoluteerlangsecurity1:27.3.4.6+dfsg-1ubuntu0.2Official record
distribution-packageUbuntu / trustyerlangesm-infra-legacy1:16.b.3-dfsg-1ubuntu2.2+esm3Official record
distribution-packageUbuntu / xenialerlangesm-infra-legacy1:18.3-dfsg-1ubuntu3.1+esm4Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history