{"id":"CVE-2020-26299","published":"2021-02-10T18:10:19Z","modified":"2024-08-04T15:56:04Z","title":"File System Bounds Escape","vendor":"autovance","product":"ftp-srv","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01886,"percentile":0.80027,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://www.npmjs.com/package/ftp-srv","tags":["x_refsource_MISC"]},{"url":"https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/autovance/ftp-srv/issues/167","tags":["x_refsource_MISC"]},{"url":"https://github.com/autovance/ftp-srv/issues/225","tags":["x_refsource_MISC"]},{"url":"https://github.com/autovance/ftp-srv/pull/224","tags":["x_refsource_MISC"]},{"url":"https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3","tags":["x_refsource_MISC"]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":16.01},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"autovance","affectedVersions":[{"vendor":"autovance","product":"ftp-srv","versions":["< 4.4.0"]}],"affected":[{"ecosystem":"npm","package":"ftp-srv","vulnerableRanges":["<4.4.0"],"patched":["4.4.0"],"from":["GHSA-pmw4-jgxx-pcq9"],"provenance":"source"}],"summary":{"text":"The flaw is a path-traversal vulnerability in the ftp-srv FTP server from autovance, present in versions before 4.4.0, where paths containing Windows backslash separators are not properly constrained to the user's defined root folder. An authenticated client connected to an ftp-srv instance running on Windows can use standard FTP commands such as CWD and UPDR to move beyond that root directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:24Z"},"euvd":{"id":"EUVD-2021-0563","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15152","published":"2020-08-17","fixed":"4.3.4","kev":false,"link":{"from":"CVE-2020-15152","to":"CVE-2020-26299","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:ftp-srv","fromFixed":"4.3.4","toFixed":"4.4.0","daysApart":177}]}},{"cve":"CVE-2020-26299","published":"2021-02-10","fixed":"4.4.0","kev":false}],"package":"npm:ftp-srv"}}