1. Accueil
  2. Vulnérabilités
  3. CVE-2026-23942

CVE-2026-23942

SFTP root escape via component-agnostic prefix check in ssh_sftpd

Publiée le 13 mars 2026 · modifiée le 20 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 31/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Erlang (9 ligne(s))
Erlang
ProduitVersionsCorrigé dansSource
OTP de 17.0 (inclus) à 26.2.5.18 (exclu) 26.2.5.18 CNA (éditeur ou attributeur)
OTP de 3.0.1 (inclus) à 5.1.4.14 (exclu) 5.1.4.14 CNA (éditeur ou attributeur)
OTP Versions non précisées — CNA (éditeur ou attributeur)
Erlang/otp de 17.0 (inclus) à 26.2.5.18 (exclu) — NVD
Erlang/otp de 27.0 (inclus) à 27.3.4.9 (exclu) — NVD
Erlang/otp de 28.0 (inclus) à 28.4.1 (exclu) — NVD
Erlang/ssh de 3.0.1 (inclus) à 5.1.4.14 (exclu) — NVD
Erlang/ssh de 5.2 (inclus) à 5.2.11.6 (exclu) — NVD
Erlang/ssh de 5.5 (inclus) à 5.5.1 (inclus) — NVD

Correctif

Mise à jour — 5.1.4.14, 26.2.5.18source officielle

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

* Use OS-level chroot to run the Erlang VM/SFTP server process in an isolated filesystem environment. * Ensure that no sensitive or precious data is readable or writable by the OS user running the Erlang VM. * Ensure that the SFTP server port is not reachable from untrusted machines. * Use directory naming conventions that avoid common prefixes (e.g., /home/users/alice/ instead of /home/user1/).

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N (CVSS 3.1, NVD)
Faiblesse
CWE-22 · Traversée de chemin / fichiers

Comment sont obtenues et calculées ces données