CVE-2017-7494: Samba Remote Code Execution Vulnerability
Vulnerability summary
CVE-2017-7494 is a high (CVSS 10.0) Improper Control of Generation of Code vulnerability in Samba. It is known to be exploited: CISA lists it, first on 30-03-2023. It has been used in ransomware campaigns. EPSS estimates a 99.45% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 3 public exploits are recorded.
Known ransomware use (CISA, 30-03-2023)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 30-05-2017PublishedVulnerability first disclosed.
- 30-03-2023Added to CISA KEVExploitedSamba Remote Code Execution Vulnerability
- 20-04-2023CISA remediation dueDeadline passedApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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 metrics
8 scores · 6 sources · 3 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
99.45%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
No change 0.00 pp
From 99.45% on 04-10-2026
Known exploited
Compare KEV catalogs- Added
- 30-03-2023
- Federal due date
- 20-04-2023
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
CISA required action
Apply updates per vendor instructions. www.samba.org/samba/security/CVE-2017-7494.html nvd.nist.gov/vuln/detail/CVE-2017-7494
Public exploits
3 foundSamba 3.5.0 - Remote Code Execution
Maturity: weaponized
Samba 3.5.0 < 4.4.14/4.5.10/4.6.4 - 'is_known_pipename()' Arbitrary Module Load (Metasploit)
Maturity: weaponized
Samba is_known_pipename() Arbitrary Module Load
exploit/linux/samba/is_known_pipename
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat57 products
- ctdb< 0:4.4.4-14.el7_3 | < 0:4.4.6-5.el6rhs | < 0:4.4.6-5.el7rhgs | < 0:4.2.10-11.el7_2
- ctdb-devel< 0:4.2.10-11.el7_2
- ctdb-tests< 0:4.4.4-14.el7_3 | < 0:4.4.6-5.el6rhs | < 0:4.4.6-5.el7rhgs | < 0:4.2.10-11.el7_2
- libsmbclient< 0:3.6.23-43.el6_9 | < 0:4.4.4-14.el7_3 | < 0:4.4.6-5.el6rhs | < 0:4.4.6-5.el7rhgs | < 0:3.6.23-32.el6_7 | < 0:3.6.23-32.el6_2 | < 0:3.6.23-32.el6_4 | < 0:3.6.23-32.el6_5 | < 0:3.6.23-32.el6_6 | < 0:4.2.10-11.el7_2
- libsmbclient-devel< 0:3.6.23-43.el6_9 | < 0:4.4.4-14.el7_3 | < 0:4.4.6-5.el6rhs | < 0:4.4.6-5.el7rhgs | < 0:3.6.23-32.el6_7 | < 0:3.6.23-32.el6_2 | < 0:3.6.23-32.el6_4 | < 0:3.6.23-32.el6_5 | < 0:3.6.23-32.el6_6 | < 0:4.2.10-11.el7_2
Suse24 products
- samba-doc&distro=SUSE Linux Enterprise Point of Sale 11 SP3< 3.6.3-93.1
- samba-doc&distro=SUSE Linux Enterprise Server 11 SP3-LTSS< 3.6.3-93.1
- samba-doc&distro=SUSE Linux Enterprise Server 11 SP3-TERADATA< 3.6.3-93.1
- samba-doc&distro=SUSE Linux Enterprise Server 11 SP4< 3.6.3-93.1
- samba-doc&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4< 3.6.3-93.1
Debian2 products
- samba< 2:4.5.8+dfsg-2 | < 2:4.2.14+dfsg-0+deb8u6 | < 2:3.6.6-6+deb7u13
- debian_linuxEOL8.0
Alpine1 product
- samba≥ 3.5.0, < 4.2.14-r3 | ≥ 3.5.0, < 4.4.14-r0
Samba1 product
- sambasince 3.5.0 | ≥ 3.5.0, < 4.4.0 | ≥ 4.4.0, < 4.4.14 | ≥ 4.5.0, < 4.5.10 | ≥ 4.6.0, < 4.6.4
Ubuntu1 product
- samba< 2:4.3.11+dfsg-0ubuntu0.14.04.8 | < 2:4.3.11+dfsg-0ubuntu0.16.04.7
6 vendors · 86 products
References
40 links- access.redhat.com/errata/RHSA-2017:1270Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory
- access.redhat.com/errata/RHSA-2017:1390Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory
- access.redhat.com/errata/RHSA-2017:1273Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory
- access.redhat.com/errata/RHSA-2017:1271Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory
Show all 40 references
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03759en_usX Refsource CONFIRMThird Party Advisory
- access.redhat.com/errata/RHSA-2017:1272Vendor AdvisoryX Refsource REDHATThird Party AdvisoryAdvisory
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbns03755en_usX Refsource CONFIRMThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-7494Government ResourceUS Government Resource