← Vulnerability feed

Vulnerability record · CVE-2014-3560 · published 6 August 2014

CVE-2014-3560: Samba nmbd heap memory corruption enables remote code execution

Canonical · Ubuntu Linux

The NetBIOS name services daemon (nmbd) in Samba 4.0.x before 4.0.21 and 4.1.x before 4.1.11 contains a heap memory corruption flaw caused by a sizeof operation on an incorrect variable in the unstrcpy macro in string_wrappers.h. A remote attacker can send unspecified vectors that modify heap memory, potentially leading to arbitrary code execution. The record does not specify the exact packet or protocol path beyond nmbd.

7.9 CVSS 2.0 High EPSS 56% · top 1.0% CWE-94 · Code injection
7.9CVSS 2.0 base score
56%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
28References
17 Jun 2026Last modified by NVD

Description

NetBIOS name services daemon (nmbd) in Samba 4.0.x before 4.0.21 and 4.1.x before 4.1.11 allows remote attackers to execute arbitrary code via unspecified vectors that modify heap memory, involving a sizeof operation on an incorrect variable in the unstrcpy macro in string_wrappers.h.

AV:A/AC:M/Au:N/C:C/I:C/A:C

Automated analysis

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

high priorityThe flaw allows unauthenticated remote code execution with complete impact, and EPSS predicts high exploitation activity, though it is not in KEV and requires adjacent network access.

What it is

The NetBIOS name services daemon (nmbd) in Samba 4.0.x before 4.0.21 and 4.1.x before 4.1.11 contains a heap memory corruption flaw caused by a sizeof operation on an incorrect variable in the unstrcpy macro in string_wrappers.h. A remote attacker can send unspecified vectors that modify heap memory, potentially leading to arbitrary code execution. The record does not specify the exact packet or protocol path beyond nmbd.

Impact

An attacker can corrupt heap memory in nmbd and potentially execute arbitrary code with the privileges of the Samba daemon. The CVSS 2.0 vector indicates complete loss of confidentiality, integrity and availability on the affected host.

Attack surface

The flaw is reachable over the network via the NetBIOS name service handled by nmbd, as reflected by the AV:A (adjacent network) vector. No authentication is required (Au:N), but the AC:M rating indicates some conditions must be met for a successful attack; the description does not state whether user interaction is needed.

Exploitation

CVE-2014-3560 is not listed in CISA KEV and no ransomware groups are documented using it. EPSS gives a 30-day probability of 0.56378 (99.008 percentile), indicating high predicted exploitation activity, but the record contains no reference tagged as an exploit or proof of concept.

What to do

  • Upgrade Samba to 4.0.21 or 4.1.11 or later, or apply the vendor patches referenced in the Samba security advisory and distribution advisories.
  • If immediate patching is not possible, restrict network access to nmbd/NetBIOS name service ports to trusted hosts and segments only.
  • Disable or stop the nmbd service on systems that do not require NetBIOS name resolution.
  • Monitor distribution advisories (Ubuntu USN-2305-1, Red Hat, Fedora, openSUSE) and apply the corresponding package updates.
  • Segment or firewall legacy NetBIOS traffic at network boundaries to reduce exposure to adjacent attackers.

Detection

  • Monitor nmbd process crashes or abnormal terminations and correlate with NetBIOS traffic from unexpected sources.
  • Inspect network traffic to NetBIOS name service ports for malformed or unusually sized packets targeting nmbd.
  • Review system logs and audit records for unexpected child processes or command execution spawned by the Samba/nmbd service account.
  • Track Samba package versions across hosts and alert on systems still running 4.0.x before 4.0.21 or 4.1.x before 4.1.11.

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

Affected products

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

References

LinkTags
http://lists.fedoraproject.org/pipermail/package-announce/2014-August/136280.html
http://lists.fedoraproject.org/pipermail/package-announce/2014-August/136864.html
http://lists.opensuse.org/opensuse-updates/2014-08/msg00027.html
http://secunia.com/advisories/59583
http://secunia.com/advisories/59610
http://secunia.com/advisories/59976
http://www.samba.org/samba/security/CVE-2014-3560 Vendor Advisory
http://www.securityfocus.com/bid/69021
http://www.securitytracker.com/id/1030663
http://www.ubuntu.com/usn/USN-2305-1
https://bugzilla.redhat.com/show_bug.cgi?id=1126010
https://exchange.xforce.ibmcloud.com/vulnerabilities/95081
https://git.samba.org/?p=samba.git%3Ba=commitdiff%3Bh=e6a848630da3ba958c442438ea131c99fa088605
https://git.samba.org/?p=samba.git%3Ba=commitdiff%3Bh=fb1d325d96dfe9bc2e9c4ec46ad4c55e8f18f4a2
http://lists.fedoraproject.org/pipermail/package-announce/2014-August/136280.html
http://lists.fedoraproject.org/pipermail/package-announce/2014-August/136864.html
http://lists.opensuse.org/opensuse-updates/2014-08/msg00027.html
http://secunia.com/advisories/59583
http://secunia.com/advisories/59610
http://secunia.com/advisories/59976
http://www.samba.org/samba/security/CVE-2014-3560 Vendor Advisory
http://www.securityfocus.com/bid/69021
http://www.securitytracker.com/id/1030663
http://www.ubuntu.com/usn/USN-2305-1
https://bugzilla.redhat.com/show_bug.cgi?id=1126010
https://exchange.xforce.ibmcloud.com/vulnerabilities/95081
https://git.samba.org/?p=samba.git%3Ba=commitdiff%3Bh=e6a848630da3ba958c442438ea131c99fa088605
https://git.samba.org/?p=samba.git%3Ba=commitdiff%3Bh=fb1d325d96dfe9bc2e9c4ec46ad4c55e8f18f4a2

Track CVE-2014-3560 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.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-14667RichFaces Framework EL injection enables unauthenticated remote code executionRichFaces Framework 3.X through 3.3.4 is vulnerable to Expression Language injection through the UserResource resource. A remote, unauthenticated att…KEVEPSS 74%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2017-7494Samba writable share library upload leads to remote code executionSamba 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 …KEVEPSS 99%analysed

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