CVE-2020-26299
File System Bounds Escape
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
3Exploited in Wild
-Decision
Descriptions
ftp-srv is an open-source FTP server designed to be simple yet configurable. In ftp-srv before version 4.4.0 there is a path-traversal vulnerability. Clients of FTP servers utilizing ftp-srv hosted on Windows machines can escape the FTP user's defined root folder using the expected FTP commands, for example, CWD and UPDR. When windows separators exist within the path (`\`), `path.resolve` leaves the upper pointers intact and allows the user to move beyond the root folder defined for that user. We did not take that into account when creating the path resolve function. The issue is patched in version 4.4.0 (commit 457b859450a37cba10ff3c431eb4aa67771122e3).
ftp-srv es un servidor FTP de código abierto diseñado para ser simple pero configurable. En ftp-srv versiones anteriores a 4.4.0, se presenta una vulnerabilidad de salto de ruta. Los clientes de servidores FTP que utilizan ftp-srv alojado en máquinas Windows pueden escapar de la carpeta root definida por el usuario FTP utilizando los comandos FTP previstos, por ejemplo, CWD y UPDR. Cuando contienen separadores de ventanas dentro de la ruta ("\"), "path.resolve" deja intactos los punteros superiores y permite al usuario moverse más allá de la carpeta root definida para ese usuario. No lo tomamos en cuenta al crear la función de resolución de ruta. El problema está parcheado en la versión 4.4.0 (commit 457b859450a37cba10ff3c431eb4aa67771122e3)
CVSS Scores
SSVC
- Decision:-
Timeline
- 2020-10-01 CVE Reserved
- 2021-02-10 CVE Published
- 2024-08-04 CVE Updated
- 2024-08-04 First Exploit
- 2024-10-28 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (6)
URL | Tag | Source |
---|---|---|
https://www.npmjs.com/package/ftp-srv | Product |
URL | Date | SRC |
---|---|---|
https://github.com/autovance/ftp-srv/issues/167 | 2024-08-04 | |
https://github.com/autovance/ftp-srv/issues/225 | 2024-08-04 | |
https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9 | 2024-08-04 |
URL | Date | SRC |
---|---|---|
https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3 | 2021-02-19 | |
https://github.com/autovance/ftp-srv/pull/224 | 2021-02-19 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Ftp-srv Project Search vendor "Ftp-srv Project" | Ftp-srv Search vendor "Ftp-srv Project" for product "Ftp-srv" | < 4.4.0 Search vendor "Ftp-srv Project" for product "Ftp-srv" and version " < 4.4.0" | node.js |
Affected
|