Live threats

All CVEs / Ftp-srv Project

CVE-2020-26299Ftp-srv Project Ftp-srv

Critical 9.6

Priority
58
CVSS 3.1
9.6
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
Yes
Published
Feb 10, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Ftp-srv.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ftp-srv < 4.4.0 4.4.0 npm install ftp-srv@4.4.0

Per OSV / GitHub Advisories (GHSA-pmw4-jgxx-pcq9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ftp-srv_projectftp-srv< 4.4.0

Official sources

References

Links published by the sources. Open them with care.