{"answers":{"affected":"2 open source packages ship an affected version, including ftp-srv. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-26299 in the wild and no public exploit code.","fix":"Upgrade ftp-srv to 4.4.0 or later.","what":"CVE-2020-26299 is a medium-severity path traversal vulnerability in autovance ftp-srv, published on 10 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-26299 and fix it if it is affected.\n\nWhat it is: CVE-2020-26299 is a medium-severity path traversal vulnerability in autovance ftp-srv, published on 10 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-26299 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ftp-srv (npm): affected all versions; fixed in 4.4.0\n- ftp-srv (npm): affected all versions; fixed in 4.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-26299/ (Markdown: https://insights.sbomify.com/CVE-2020-26299/index.md)","id":"CVE-2020-26299","markdown":"https://insights.sbomify.com/CVE-2020-26299/index.md","name":"CVE-2020-26299","record":{"aliases":["GHSA-pmw4-jgxx-pcq9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js FTP server library","requires_auth":"low_privilege","summary":"Attackers can escape the FTP user's root directory on Windows systems using path traversal commands, allowing unauthorized file access.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ftp-srv","vendor":"ftp-srv_project"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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).","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"File System Bounds Escape","id":"CVE-2020-26299","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":2,"n_references":6,"next":{"headline":"Command injection in systeminformation","id":"CVE-2020-26300"},"packages":[{"ecosystem":"npm","fixed":["4.4.0"],"introduced":["0"],"last_affected":[],"package":"ftp-srv","purl":null,"source":"GHSA-pmw4-jgxx-pcq9"},{"ecosystem":"npm","fixed":["4.4.0"],"introduced":["0"],"last_affected":[],"package":"ftp-srv","purl":"pkg:npm/ftp-srv","source":"GHSA-pmw4-jgxx-pcq9"}],"prev":{"headline":"Injection in Redcarpet","id":"CVE-2020-26298"},"products":["ftp-srv"],"published":"2021-02-10","related":[{"cvss_score":9.1,"headline":"Server-Side Request Forgery in ftp-srv","id":"CVE-2020-15152","kev_date_added":null,"published":"2020-08-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["autovance"]},"summary":"Attackers can escape the FTP user's root directory on Windows systems using path traversal commands, allowing unauthorized file access.","url":"https://insights.sbomify.com/CVE-2020-26299/"}