← Vulnerability feed

Vulnerability record · CVE-2017-7494 · published 30 May 2017

CVE-2017-7494: Samba writable share library upload leads to remote code execution

Samba · Samba

Samba versions from 3.5.0 up to (but not including) 4.6.4, 4.5.10 and 4.4.14 allow a malicious client to upload a shared library to a writable share and then cause the server to load and execute it. This is a network-reachable code injection flaw (CWE-94) that yields full server compromise without credentials or user interaction. It is a long-known, widely exploited issue that remains relevant wherever unpatched Samba file servers are exposed.

9.8 CVSS 3.1 Critical CISA KEV since 30 Mar 2023 Known ransomware use EPSS 99% · top 0.1% CWE-94 · Code injection
9.8CVSS 3.1 base score, v2 10.0
99%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
2Affected product versions listed by NVD
33References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityCVSS 9.8, confirmed KEV listing with known ransomware use, near-maximum EPSS, and public exploit code make this an urgent patch-or-isolate case for any exposed unpatched Samba host.

What it is

Samba versions from 3.5.0 up to (but not including) 4.6.4, 4.5.10 and 4.4.14 allow a malicious client to upload a shared library to a writable share and then cause the server to load and execute it. This is a network-reachable code injection flaw (CWE-94) that yields full server compromise without credentials or user interaction. It is a long-known, widely exploited issue that remains relevant wherever unpatched Samba file servers are exposed.

Impact

An attacker gains remote code execution with the privileges of the Samba service, typically root, allowing full control of the file server and any data or credentials it holds. CISA KEV records known ransomware campaign use, so the practical outcome includes ransomware deployment and lateral movement.

Attack surface

Reached over the network via SMB (CVSS vector AV:N/AC:L/PR:N/UI:N), so no authentication and no user interaction are required. The only precondition stated is that the target exposes a writable share the client can upload to.

Exploitation

Exploitation is confirmed and mature: CISA KEV lists it with a 2023-04-20 remediation due date and known ransomware use, EPSS 30-day probability is 0.99448 (99.9th percentile), and public exploit code exists in Exploit-DB (42060, 42084).

What to do

  • Patch Samba to 4.6.4, 4.5.10, 4.4.14 or later, or apply the vendor/distribution updates referenced in the Samba advisory and Red Hat, Debian and Gentoo errata.
  • Disable or restrict writable shares, especially those allowing anonymous or guest write access, and remove write permission where it is not operationally required.
  • Block SMB (TCP 445/139) from untrusted networks and segment file servers so only required clients can reach them.
  • Enable the Samba mitigation that prevents loading libraries from writable shares (e.g. the 'nt pipe support = no' workaround documented by the vendor) if patching cannot be done immediately.
  • Inventory internet- or broadly reachable Samba hosts and prioritize those still running versions below the fixed releases.

Detection

  • Monitor SMB write activity for uploads of shared library files (.so) into writable shares, particularly to paths later referenced by the server.
  • Alert on Samba processes loading libraries from share directories or other unexpected paths (e.g. via auditd, eBPF or process-to-file telemetry).
  • Hunt for SMB connections from unusual or external source addresses followed by new files in shares and subsequent service process activity.
  • Correlate Samba server logs and file integrity monitoring for new .so files in shares with immediate process execution.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2017-7494 to the Known Exploited Vulnerabilities catalog on 30 March 2023 as "Samba Remote Code Execution Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 20 April 2023.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.debian.org/security/2017/dsa-3860 Third Party Advisory
http://www.securityfocus.com/bid/98636 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1038552 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:1270 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1271 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1272 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1273 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1390 Third Party Advisory
https://download.schneider-electric.com/files?p_enDocType=Technical+leaflet&p_File_Name=SEVD-2018-095-01+Security+Notifi Third Party Advisory
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbns03755en_us Third Party Advisory
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03759en_us Third Party Advisory
https://security.gentoo.org/glsa/201805-07 Third Party Advisory
https://security.netapp.com/advisory/ntap-20170524-0001/ Third Party Advisory
https://www.exploit-db.com/exploits/42060/ Third Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/42084/ Third Party AdvisoryVDB Entry
https://www.samba.org/samba/security/CVE-2017-7494.html PatchVendor Advisory
http://www.debian.org/security/2017/dsa-3860 Third Party Advisory
http://www.securityfocus.com/bid/98636 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1038552 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:1270 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1271 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1272 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1273 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:1390 Third Party Advisory
https://download.schneider-electric.com/files?p_enDocType=Technical+leaflet&p_File_Name=SEVD-2018-095-01+Security+Notifi Third Party Advisory
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbns03755en_us Third Party Advisory
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03759en_us Third Party Advisory
https://security.gentoo.org/glsa/201805-07 Third Party Advisory
https://security.netapp.com/advisory/ntap-20170524-0001/ Third Party Advisory
https://www.exploit-db.com/exploits/42060/ Third Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/42084/ Third Party AdvisoryVDB Entry
https://www.samba.org/samba/security/CVE-2017-7494.html PatchVendor Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-7494 US Government Resource

Track CVE-2017-7494 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-7494), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.