{"answers":{"affected":"It affects 8 products.","exploited":"There is no known exploitation of CVE-2017-17405 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2017-17405 is a high-severity command injection vulnerability in Debian Debian Linux, published on 15 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-17405 and fix it if it is affected.\n\nWhat it is: CVE-2017-17405 is a high-severity command injection vulnerability in Debian Debian Linux, published on 15 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-17405 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2017-17405/ (Markdown: https://insights.sbomify.com/CVE-2017-17405/index.md)","id":"CVE-2017-17405","markdown":"https://insights.sbomify.com/CVE-2017-17405/index.md","name":"CVE-2017-17405","record":{"aliases":["ALPINE-CVE-2017-17405","CLEANSTART-2026-YL35253","GHSA-q23r-c9rf-97q3","RHSA-2019:2806","UBUNTU-CVE-2017-17405","USN-3515-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby standard library","requires_auth":"none","summary":"A malicious FTP server can trigger arbitrary command execution in Ruby applications using Net::FTP due to unsafe file handling in Kernel#open.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"ruby","vendor":"ruby-lang"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument starts with the \"|\" pipe character, the command following the pipe character is executed. The default value of localfile is File.basename(remotefile), so malicious FTP servers could cause arbitrary command execution.","ecosystems":["Red Hat:rhel_aus:7.3::server","Red Hat:rhel_e4s:7.3::server","Red Hat:rhel_tus:7.3::server"],"exploits":{"exploitdb":1,"first_seen":"2017-12-02","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-12-02","kind":"exploitdb","ref":"43381","stars":null,"title":"Ruby \u003c 2.2.8 / \u003c 2.3.5 / \u003c 2.4.2 / \u003c 2.5.0-preview1 - 'NET::Ftp' Command Injection"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2017-17405","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation","ruby-lang:ruby"],"type":"command_injection","year":"2017"},"n_packages":48,"n_references":14,"next":{"headline":"Deserialization in NetGain Systems Enterprise Manager","id":"CVE-2017-17406"},"packages":[{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/redhat/ruby-doc","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-irb","purl":"pkg:rpm/redhat/ruby-irb","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:1.2.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/redhat/rubygem-bigdecimal","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:0.4.2-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console","purl":"pkg:rpm/redhat/rubygem-io-console","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:1.7.7-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-json","purl":"pkg:rpm/redhat/rubygem-json","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:4.3.2-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-minitest","purl":"pkg:rpm/redhat/rubygem-minitest","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych","purl":"pkg:rpm/redhat/rubygem-psych","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:0.9.6-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rake","purl":"pkg:rpm/redhat/rubygem-rake","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:4.0.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rdoc","purl":"pkg:rpm/redhat/rubygem-rdoc","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.14.1-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygems","purl":"pkg:rpm/redhat/rubygems","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_aus:7.3::server","fixed":["0:2.0.14.1-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygems-devel","purl":"pkg:rpm/redhat/rubygems-devel","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/redhat/ruby-doc","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-irb","purl":"pkg:rpm/redhat/ruby-irb","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:1.2.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/redhat/rubygem-bigdecimal","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:0.4.2-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console","purl":"pkg:rpm/redhat/rubygem-io-console","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:1.7.7-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-json","purl":"pkg:rpm/redhat/rubygem-json","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:4.3.2-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-minitest","purl":"pkg:rpm/redhat/rubygem-minitest","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych","purl":"pkg:rpm/redhat/rubygem-psych","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:0.9.6-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rake","purl":"pkg:rpm/redhat/rubygem-rake","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:4.0.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rdoc","purl":"pkg:rpm/redhat/rubygem-rdoc","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.14.1-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygems","purl":"pkg:rpm/redhat/rubygems","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_e4s:7.3::server","fixed":["0:2.0.14.1-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygems-devel","purl":"pkg:rpm/redhat/rubygems-devel","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/redhat/ruby-doc","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-irb","purl":"pkg:rpm/redhat/ruby-irb","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:2.0.0.648-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2019:2806"},{"ecosystem":"Red Hat:rhel_tus:7.3::server","fixed":["0:1.2.0-30.el7_3"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/redhat/rubygem-bigdecimal","source":"RHSA-2019:2806"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2017-17384"},"products":["n/a"],"published":"2017-12-15","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"A malicious FTP server can trigger arbitrary command execution in Ruby applications using Net::FTP due to unsafe file handling in Kernel#open.","url":"https://insights.sbomify.com/CVE-2017-17405/"}