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

CVE-2026-32147

SFTP chroot bypass via path traversal in SSH_FXP_FSETSTAT

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

Faible 26/100

Résumé

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to modify file attributes outside the configured chroot directory. The SFTP daemon (ssh_sftpd) stores the raw, user-supplied path in file handles instead of the chroot-resolved path. When SSH_FXP_FSETSTAT is issued on such a handle, file attributes (permissions, ownership, timestamps) are modified on the real filesystem path, bypassing the root directory boundary entirely. Any authenticated SFTP user on a server configured with the root option can modify file attributes of files outside the intended chroot boundary. The prerequisite is that a target file must exist on the real filesystem at the same relative path. Note that this vulnerability only allows modification of file attributes; file contents cannot be read or altered through this attack vector. If the SSH daemon runs as root, this enables direct privilege escalation: an attacker can set the setuid bit on any binary, change ownership of sensitive files, or make system configuration world-writable. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:do_open/4 and ssh_sftpd:handle_op/4. This issue affects OTP from OTP 17.0 before OTP 26.2.5.20, OTP 27.3.4.11, and OTP 28.4.3, corresponding to ssh from 3.0.1 before 5.1.4.15, 5.2.11.7, and 5.5.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) à 26.2.5.20 (exclu) 26.2.5.20 CNA (éditeur ou attributeur)
OTP de 3.0.1 (inclus) à 5.1.4.15 (exclu) 5.1.4.15 CNA (éditeur ou attributeur)
OTP Versions non précisées — CNA (éditeur ou attributeur)
Erlang/otp de 17.0 (inclus) à 26.2.5.20 (exclu) — NVD
Erlang/otp de 27.0 (inclus) à 27.3.4.11 (exclu) — NVD
Erlang/otp de 28.0 (inclus) à 28.4.3 (exclu) — NVD
Erlang/ssh de 3.0.1 (inclus) à 5.1.4.15 (exclu) — NVD
Erlang/ssh de 5.2 (inclus) à 5.2.11.7 (exclu) — NVD
Erlang/ssh de 5.5 (inclus) à 5.5.2 (exclu) — NVD

Correctif

Mise à jour — 5.1.4.15, 26.2.5.20source officielle

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

* Do not use the root option in ssh_sftpd:subsystem_spec/1, and instead rely on OS-level chroot or container isolation to confine SFTP users. * Ensure the Erlang VM is not running as a privileged OS user. Running the VM as an unprivileged user limits the impact of this vulnerability, since attribute modifications are constrained by that user's OS-level permissions.

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:N/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