{"id":"CVE-2020-15152","aliases":["CVE-2020-15152","GHSA-jw37-5gqr-cf9j"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery in ftp-srv","summary":"ftp-srv is an npm package which is a modern and extensible FTP server designed to be simple yet configurable. In ftp-srv before versions 2.19.6, 3.1.2, and 4.3.4 are vulnerable to Server-Side Request Forgery. The PORT command allows arbitrary IPs which can be used to cause the server to make a connection elsewhere. A possible workaround is blocking the PORT through the configuration. This issue is fixed in version2 2.19.6, 3.1.2, and 4.3.4. More information can be found on the linked advisory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ftp-srv is an npm package which is a modern and extensible FTP server designed to be simple yet configurable. In ftp-srv before versions 2.19.6, 3.1.2, and 4.3.4 are vulnerable to Server-Side Request Forgery. The PORT command allows arbitrary IPs which can be used to cause the server to make a connection elsewhere. A possible workaround is blocking the PORT through the configuration. This issue is fixed in version2 2.19.6, 3.1.2, and 4.3.4. More information can be found on the linked advisory.","source":"cvelist"},{"lang":"en","text":"### Background\n\nThe FTP protocol creates two connections, one for commands and one for transferring data.\nThis second data connection can be created in two ways, on the server by sending the PASV command, or on the client by sending the PORT command.\n\nThe PORT command sends the IP and port for the server to connect to the client with.\n\n### Issue\nSince the client can send an arbitrary IP with the PORT command, this can be used to cause the server to make a connection elsewhere.\n\n### Patches\n\n* _fix: disallow PORT connections to alternate hosts_: e449e75219d918c400dec65b4b0759f60476abca\n\nDeprecation notices have been published for older versions.\n\n### Workarounds\n\nBlacklisting the FTP Command `PORT` will prevent the server from exposing this behaviour through active connections until a fix is applied.\n```js\nconst ftp = new FtpSrv({\n  blacklist: ['PORT']\n});\n```\n\n### References\nhttps://www.npmjs.com/advisories/1445\n\n### Credits\n\nThank you to;\n@trs for fixing it\n@andreeleuterio for reporting it to us for an anonymous user (Vincent) through the NPM platform\n@quiquelhappy for bringing it to our attention after it slipped through the cracks during Christmas\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue at [https://github.com/autovance/ftp-srv](https://github.com/autovance/ftp-srv)\n* Email us directly; security@autovance.com","format":"markdown","source":"ghsa"},{"lang":"es","text":"ftp-srv es un paquete npm que es un moderno y extensible servidor FTP diseñado para ser simple pero configurable. En ftp-srv antes de las versiones 2.19.6, 3.1.2, y 4.3.4 son vulnerables a la falsificación de solicitudes del lado del servidor. El comando PORT permite IPs arbitrarias que pueden ser usadas para hacer que el servidor haga una conexión en otro lugar. Una posible solución es bloquear el PUERTO a través de la configuración. Este problema está solucionado en las versiones 2.19.6, 3.1.2 y 4.3.4. Puede encontrar más información en el aviso vinculado","source":"nvd"}],"published":"2020-08-17T21:44:54.000Z","modified":"2026-09-10T03:48:51.656Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 1.0.0, < 2.19.6","status":"affected"},{"version":">= 3.0.0, < 3.1.2","status":"affected"},{"version":">= 4.0.0, < 4.3.4","status":"affected"}],"vendor":"autovance","product":"ftp-srv","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"2.19.6"}],"ecosystem":"npm","package":"ftp-srv","purl":"pkg:npm/ftp-srv","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.2"}],"ecosystem":"npm","package":"ftp-srv","purl":"pkg:npm/ftp-srv","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.3.4"}],"ecosystem":"npm","package":"ftp-srv","purl":"pkg:npm/ftp-srv","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.19.6"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.2"},{"status":"affected","introduced":"4.0.0","fixed":"4.3.4"}],"vendor":"ftp-srv_project","product":"ftp-srv","cpe":"cpe:2.3:a:ftp-srv_project:ftp-srv:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/autovance/ftp-srv/security/advisories/GHSA-jw37-5gqr-cf9j","tags":["mitigation","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/autovance/ftp-srv/commit/e449e75219d918c400dec65b4b0759f60476abca","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/ftp-srv","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15152","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/autovance/ftp-srv/commit/5508c2346cf23b24c20070ff2e8a47c647d3d5b5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/autovance/ftp-srv/commit/fb32b012c3baf48ee804e1dc36544cbba70b00d3","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1445","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15152","url":"https://www.cve.org/CVERecord?id=CVE-2020-15152","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.363Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jw37-5gqr-cf9j","url":"https://github.com/advisories/GHSA-jw37-5gqr-cf9j","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:51.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15152","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15152","licence":"Public domain","modified":"2026-06-17T02:56:09.253Z"}],"updatedAt":"2026-11-25T22:57:54.282Z","epss":{"score":0.01859,"percentile":0.79836,"date":"2026-12-01T12:00:22.000Z"}}