- Accueil
- Vulnérabilités
- CVE-2026-23942
CVE-2026-23942
SFTP root escape via component-agnostic prefix check in ssh_sftpd
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))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| 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
- — Publication de la CVE (cve)
Références
- https://cna.erlef.org/cves/CVE-2026-23942.htmlVendor Advisory
- https://github.com/erlang/otp/commit/27688a824f753d4c16371dc70e88753fb410590bPatch
- https://github.com/erlang/otp/commit/5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759Patch
- https://github.com/erlang/otp/commit/9e0ac85d3485e7898e0da88a14be0ee2310a3b28Patch
- https://github.com/erlang/otp/security/advisories/GHSA-4749-w85x-hw9hMitigation, Vendor Advisory
- https://osv.dev/vulnerability/EEF-CVE-2026-23942Vendor Advisory
- https://www.erlang.org/doc/system/versions.html#order-of-versionsProduct
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