CVE-2020-26299

MEDIUM

ftp-srv < 4.4.0 - Path Traversal via CWD and UPDR Commands

Title source: llm
STIX 2.1

Description

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).

References (6)

Core 6
Core References
Product, Third Party Advisory x_refsource_misc
https://www.npmjs.com/package/ftp-srv
Exploit, Third Party Advisory x_refsource_confirm
https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9
Exploit, Patch, Third Party Advisory x_refsource_misc
https://github.com/autovance/ftp-srv/issues/167
Exploit, Third Party Advisory x_refsource_misc
https://github.com/autovance/ftp-srv/issues/225
Patch, Third Party Advisory x_refsource_misc
https://github.com/autovance/ftp-srv/pull/224

Scores

CVSS v3 6.3
EPSS 0.0186
EPSS Percentile 76.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N

Details

CWE
CWE-22
Status published
Products (2)
ftp-srv_project/ftp-srv < 4.4.0
npm/ftp-srv 0 - 4.4.0npm
Published Feb 10, 2021
Tracked Since Feb 18, 2026