Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ftp-srv
  4. ›
  5. CVE-2020-26299

CVE-2020-26299: Path Traversal

February 10, 2021 (updated February 19, 2021)

ftp-srv is an open-source FTP server designed to be simple yet configurable. In ftp-srv 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 (commit b859450a37cba10ff3c431eb4aa67771122e3).

References

  • nvd.nist.gov/vuln/detail/CVE-2020-26299

Code Behaviors & Features

Detect and mitigate CVE-2020-26299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.4.0

Fixed versions

  • 4.4.0

Solution

Upgrade to version 4.4.0 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/ftp-srv/CVE-2020-26299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.