{"answers":{"affected":"It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2017-7494 in the wild since at least 30 Mar 2023, including in ransomware campaigns.","fix":"Apply the vendor's patch. US federal agencies must fix it by 20 Apr 2023.","what":"CVE-2017-7494 is a critical code injection vulnerability in Debian Debian Linux, published on 30 May 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-7494 and fix it if it is affected.\n\nWhat it is: CVE-2017-7494 is a critical code injection vulnerability in Debian Debian Linux, published on 30 May 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2017-7494 in the wild since at least 30 Mar 2023, including in ransomware campaigns.\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-7494/ (Markdown: https://insights.sbomify.com/CVE-2017-7494/index.md)","id":"CVE-2017-7494","markdown":"https://insights.sbomify.com/CVE-2017-7494/index.md","name":"CVE-2017-7494","record":{"aliases":["ALPINE-CVE-2017-7494","AZL-110360","DEBIAN-CVE-2017-7494","DLA-951-1","DSA-3860-1","ECHO-a98d-272f-29e3","GHSA-453q-q3mp-9cq4","RHSA-2017:1270","RHSA-2017:1271","RHSA-2017:1272","RHSA-2017:1273","RHSA-2017:1390","SUSE-SU-2017:1391-1","SUSE-SU-2017:1392-1","SUSE-SU-2017:1393-1","SUSE-SU-2017:1396-1","UBUNTU-CVE-2017-7494","USN-3296-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Samba file server","requires_auth":"none","summary":"Attackers can upload and execute malicious shared libraries on writable Samba shares, leading to remote code execution.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"samba","vendor":"samba"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious client to upload a shared library to a writable share, and then cause the server to load and execute it.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:rhel_aus:6.4::server","Red Hat:rhel_aus:6.5::server","Red Hat:rhel_aus:6.6::server","Red Hat:rhel_els:5","Red Hat:rhel_eus:6.7::computenode","Red Hat:rhel_eus:6.7::server","Red Hat:rhel_eus:7.1::server","Red Hat:rhel_eus:7.2::computenode","Red Hat:rhel_eus:7.2::server","Red Hat:rhel_mission_critical:6.2::server","Red Hat:rhel_tus:6.5::server","Red Hat:rhel_tus:6.6::server","Red Hat:storage:3.2:samba:el6","Red Hat:storage:3.2:samba:el7","SUSE:Linux Enterprise Desktop 12 SP1","SUSE:Linux Enterprise Desktop 12 SP2","SUSE:Linux Enterprise High Availability Extension 12 SP1","SUSE:Linux Enterprise High Availability Extension 12 SP2","SUSE:Linux Enterprise Point of Sale 11 SP3","SUSE:Linux Enterprise Server 11 SP3-LTSS","SUSE:Linux Enterprise Server 11 SP3-TERADATA","SUSE:Linux Enterprise Server 11 SP4","SUSE:Linux Enterprise Server 12 SP1","SUSE:Linux Enterprise Server 12 SP2","SUSE:Linux Enterprise Server 12-LTSS","SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 11 SP4","SUSE:Linux Enterprise Server for SAP Applications 12","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Software Development Kit 11 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP1","SUSE:Linux Enterprise Software Development Kit 12 SP2"],"exploits":{"exploitdb":2,"first_seen":"2017-03-24","github_poc":23,"max_poc_stars":380,"metasploit":1,"nuclei":0,"refs":[{"date":"2017-05-26T00:58:25Z","kind":"github_poc","ref":"https://github.com/opsxcq/exploit-CVE-2017-7494","stars":380,"title":"SambaCry exploit and vulnerable container (CVE-2017-7494)"},{"date":"2017-06-05T16:25:57Z","kind":"github_poc","ref":"https://github.com/joxeankoret/CVE-2017-7494","stars":259,"title":"Remote root exploit for the SAMBA CVE-2017-7494 vulnerability"},{"date":"2017-05-25T13:20:56Z","kind":"github_poc","ref":"https://github.com/betab0t/cve-2017-7494","stars":181,"title":"Proof-of-Concept exploit for CVE-2017-7494(Samba RCE from a writable share)"},{"date":"2017-05-26T07:28:26Z","kind":"github_poc","ref":"https://github.com/Waffles-2/SambaCry","stars":63,"title":"CVE-2017-7494 - Detection Scripts"},{"date":"2017-05-30T15:08:32Z","kind":"github_poc","ref":"https://github.com/brianwrf/SambaHunter","stars":57,"title":"It is a simple script to exploit RCE for Samba (CVE-2017-7494 )."},{"date":"2022-11-01T23:17:25Z","kind":"github_poc","ref":"https://github.com/d3fudd/CVE-2017-7494_SambaCry","stars":7,"title":"SambaCry (CVE-2017-7494) exploit for Samba | bind shell without Metasploit"},{"date":"2021-05-09T02:32:54Z","kind":"github_poc","ref":"https://github.com/0xm4ud/noSAMBAnoCRY-CVE-2017-7494","stars":5,"title":"CVE-2017-7494 python exploit"},{"date":"2021-05-15T06:52:23Z","kind":"github_poc","ref":"https://github.com/I-Rinka/BIT-EternalBlue-for-macOS_Linux","stars":4,"title":"Exploit CVE-2017-7494 for Net Security course final Assignment. This would reveal the vulnerability of services that run in administrative priority on Linux."}],"tier":"exploited"},"has_fix":true,"headline":"Samba Remote Code Execution","id":"CVE-2017-7494","indexable":true,"kev":{"dateAdded":"2023-03-30","dueDate":"2023-04-20","knownRansomwareCampaignUse":"Known","product":"Samba","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Samba","vulnerabilityName":"Samba Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","samba:samba"],"type":"code_injection","year":"2017"},"n_packages":466,"n_references":16,"next":{"headline":"Information disclosure in Linux kernel before 4.6.2","id":"CVE-2017-7495"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-doc","purl":"pkg:rpm/redhat/samba-doc","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-domainjoin-gui","purl":"pkg:rpm/redhat/samba-domainjoin-gui","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-glusterfs","purl":"pkg:rpm/redhat/samba-glusterfs","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind","purl":"pkg:rpm/redhat/samba-winbind","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-clients","purl":"pkg:rpm/redhat/samba-winbind-clients","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-devel","purl":"pkg:rpm/redhat/samba-winbind-devel","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-krb5-locator","purl":"pkg:rpm/redhat/samba-winbind-krb5-locator","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4","purl":"pkg:rpm/redhat/samba4","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-client","purl":"pkg:rpm/redhat/samba4-client","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-common","purl":"pkg:rpm/redhat/samba4-common","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-dc","purl":"pkg:rpm/redhat/samba4-dc","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-dc-libs","purl":"pkg:rpm/redhat/samba4-dc-libs","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-debuginfo","purl":"pkg:rpm/redhat/samba4-debuginfo","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-devel","purl":"pkg:rpm/redhat/samba4-devel","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-libs","purl":"pkg:rpm/redhat/samba4-libs","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-pidl","purl":"pkg:rpm/redhat/samba4-pidl","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-python","purl":"pkg:rpm/redhat/samba4-python","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-test","purl":"pkg:rpm/redhat/samba4-test","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-winbind","purl":"pkg:rpm/redhat/samba4-winbind","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-winbind-clients","purl":"pkg:rpm/redhat/samba4-winbind-clients","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:4.2.10-10.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba4-winbind-krb5-locator","purl":"pkg:rpm/redhat/samba4-winbind-krb5-locator","source":"RHSA-2017:1271"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient","purl":"pkg:rpm/redhat/libsmbclient","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"libsmbclient-devel","purl":"pkg:rpm/redhat/libsmbclient-devel","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba","purl":"pkg:rpm/redhat/samba","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-client","purl":"pkg:rpm/redhat/samba-client","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-common","purl":"pkg:rpm/redhat/samba-common","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-debuginfo","purl":"pkg:rpm/redhat/samba-debuginfo","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-doc","purl":"pkg:rpm/redhat/samba-doc","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-domainjoin-gui","purl":"pkg:rpm/redhat/samba-domainjoin-gui","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-glusterfs","purl":"pkg:rpm/redhat/samba-glusterfs","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-swat","purl":"pkg:rpm/redhat/samba-swat","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind","purl":"pkg:rpm/redhat/samba-winbind","source":"RHSA-2017:1270"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.6.23-43.el6_9"],"introduced":["0"],"last_affected":[],"package":"samba-winbind-clients","purl":"pkg:rpm/redhat/samba-winbind-clients","source":"RHSA-2017:1270"}],"prev":{"headline":"Privilege escalation in qemu","id":"CVE-2017-7493"},"products":["samba"],"published":"2017-05-30","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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Samba"]},"summary":"Attackers can upload and execute malicious shared libraries on writable Samba shares, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2017-7494/"}