CVE-2020-26299
What it is
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).
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data tampering.
- Exploit odds
- 1.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.9% in the next 30 days (EPSS).
- Severity: 6.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.9% · EPSS, next 30 days
- Weakness
- CWE-22 · Path traversal
- Record status
- Modified
Affected
- ftp-srv Project ftp-srv < 4.4.0
Attack profile CVSS 3.1 · 6.3
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2020-26299.md and follow it. Check whether this project is affected by CVE-2020-26299. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3
- https://github.com/autovance/ftp-srv/issues/167
- https://github.com/autovance/ftp-srv/pull/224
- https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9
- https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3
- https://github.com/autovance/ftp-srv/issues/167
- https://github.com/autovance/ftp-srv/pull/224
- https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9
References
- https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3
- https://github.com/autovance/ftp-srv/issues/167
- https://github.com/autovance/ftp-srv/issues/225
- https://github.com/autovance/ftp-srv/pull/224
- https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9
- https://www.npmjs.com/package/ftp-srv
- https://github.com/autovance/ftp-srv/commit/457b859450a37cba10ff3c431eb4aa67771122e3
- https://github.com/autovance/ftp-srv/issues/167
- https://github.com/autovance/ftp-srv/issues/225
- https://github.com/autovance/ftp-srv/pull/224
- https://github.com/autovance/ftp-srv/security/advisories/GHSA-pmw4-jgxx-pcq9
- https://www.npmjs.com/package/ftp-srv