BreachSpiderVerified, not vibes

CVE-2026-23942 in Erlang/Otp and 1 more product

Medium 5.4

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 matc...

Affects 2 products from 1 vendor. Facts below cite their sources.

CVSS 3.15.4
CVSS v45.3
EPSS0.5%
EPSS percentile31th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
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

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-23942
BreachSpider IDBS-2026-GLOBAL-072123-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Published2026-03-13
Last modified2026-11-20
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

Related attack patterns (CAPEC)

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

CAPEC-126 Path Traversal via CWE-22

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A Path Traversal vulnerability in the Erlang OTP ssh_sftpd module allows attackers to access files outside the intended directory by manipulating file paths.

The vulnerability arises from the use of string prefix matching instead of proper path component validation in the ssh_sftpd:is_within_root/2 function, enabling attackers to craft malicious file paths that bypass intended directory restrictions.

Questions

What is CVE-2026-23942?

A Path Traversal vulnerability in the Erlang OTP ssh_sftpd module allows attackers to access files outside the intended directory by manipulating file paths.

What is the CVSS score for CVE-2026-23942?

CVE-2026-23942 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.5%.

Is CVE-2026-23942 actively exploited?

No confirmed active exploitation of CVE-2026-23942 as of 2026-11-21.

How do I remediate CVE-2026-23942?

Priority: MEDIUM. PSIRT: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

What systems are affected by CVE-2026-23942?

CVE-2026-23942 affects Erlang Erlang/Otp, Erlang/Ssh.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Erlang","product":"Erlang/Otp","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-20.