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

CVE-2026-53422

SFTP REALPATH path-existence oracle allowing filesystem enumeration outside configured root

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

Faible 25/100

Résumé

Observable Response Discrepancy vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to enumerate the existence of files and directories outside the configured root directory. The SSH_FXP_REALPATH handler in ssh_sftpd calls relate_file_name/3 with Canonicalize=false, unlike every other SFTP operation handler. This allows .. components in the requested path to bypass the is_within_root/2 check without being resolved. The un-canonicalized path then enters resolve_symlinks/2, which walks up the directory tree above the configured root and issues read_link() syscalls on arbitrary filesystem paths. An authenticated SFTP client can exploit this by sending a REALPATH request with a crafted traversal path. The server response differs depending on whether the target path exists on the host filesystem (SSH_FXP_NAME when the path resolves successfully, SSH_FX_NO_SUCH_FILE when it does not). This creates a path-existence oracle that an attacker can use to enumerate the filesystem structure outside the configured root, including the existence of sensitive files, directories, and mount points. The vulnerability leaks only the existence of paths. No file contents, credentials, or write access are obtainable through this issue alone. The information gained may assist further attacks when combined with other vulnerabilities. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routine ssh_sftpd:handle_op/4. This issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssh from 3.0.1 before 5.2.11.9, 5.5.2.2, and 6.0.2. 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) à 27.3.4.14 (exclu) 27.3.4.14 CNA (éditeur ou attributeur)
OTP de 3.0.1 (inclus) à 5.2.11.9 (exclu) 5.2.11.9 CNA (éditeur ou attributeur)
OTP Versions non précisées — CNA (éditeur ou attributeur)
Erlang/otp de 17.0 (inclus) à 27.3.4.14 (exclu) — NVD
Erlang/otp de 28.0 (inclus) à 28.5.0.3 (exclu) — NVD
Erlang/otp de 29.0 (inclus) à 29.0.3 (exclu) — NVD
Erlang/ssh de 3.0.1 (inclus) à 5.2.11.9 (exclu) — NVD
Erlang/ssh de 5.3 (inclus) à 5.5.2.2 (exclu) — NVD
Erlang/ssh de 6.0 (inclus) à 6.0.2 (exclu) — NVD

Correctif

Mise à jour — 5.2.11.9, 27.3.4.14source officielle

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

* Use OS-level chroot to run the Erlang VM or SFTP server process in an isolated filesystem environment, eliminating reliance on the application-level root option. * Ensure the SFTP server port on the machine running the Erlang/OTP SFTP server is not reachable from untrusted machines. * Ensure that no sensitive information (usernames, project names, mount topology) is inferrable from the existence or non-existence of paths on the host filesystem.

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:N/A:N (CVSS 3.1, NVD)
Faiblesse
CWE-204 · Autre (CWE-204)

Comment sont obtenues et calculées ces données