{"id":"GHSA-pmw4-jgxx-pcq9","summary":"File System Bounds Escape","details":"### Impact\n\nClients 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`.\n\n### Background\n\nWhen 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.\n\n![Screen Shot 2020-12-15 at 6 42 52 PM](https://user-images.githubusercontent.com/3375444/102293941-5a75fb80-3f05-11eb-9d71-0c190a8dcc75.png)\n\n### Patches\nNone at the moment.\n\n### Workarounds\nThere are no workarounds for windows servers. Hosting the server on a different OS mitigates the issue.\n\n### References\n\nIssues: \nhttps://github.com/autovance/ftp-srv/issues/167\nhttps://github.com/autovance/ftp-srv/issues/225\n\n### For more information\nIf you have any questions or comments about this advisory:\nOpen an issue at https://github.com/autovance/ftp-srv.\nPlease email us directly; security@autovance.com.","aliases":["CVE-2020-26299"],"modified":"2026-05-07T05:02:27.597829296Z","published":"2021-02-10T18:11:34Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-02-10T18:11:21Z","nvd_published_at":"2021-02-10T18:15:00Z"},"references":[{"type":"WEB","url":"https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26299"},{"type":"WEB","url":"https://github.com/autovance/ftp-srv/issues/167"},{"type":"WEB","url":"https://github.com/autovance/ftp-srv/issues/225"},{"type":"WEB","url":"https://github.com/autovance/ftp-srv/pull/224"},{"type":"WEB","url":"https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3"},{"type":"WEB","url":"https://www.npmjs.com/package/ftp-srv"}],"affected":[{"package":{"name":"ftp-srv","ecosystem":"npm","purl":"pkg:npm/ftp-srv"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-pmw4-jgxx-pcq9/GHSA-pmw4-jgxx-pcq9.json"}}],"schema_version":"1.9.0"}