All versions of Samba prior to 4.13.16 are vulnerable to a malicious client using an SMB1 or NFS race to allow a directory to be created in
All versions of Samba prior to 4.13.16 are vulnerable to a malicious client using an SMB1 or NFS race to allow a directory to be created in an area of the server file system not exported under the share definition. Note that SMB1 has to be enabled, or the share also available via NFS in order for this attack to succeed.
- Published
- Jan 11, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.4% · 29th percentile
- CWE
- CWE-362
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
10
Monitor
Low priority for now.
- CVSS
- 10 / 40 · 2.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| samba | samba | cpe:2.3:a:samba:samba |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- samba sambabefore 4.13.16
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.13 | samba | before 4.13.17-r0 | 4.13.17-r0 |
| Debian:12 | samba | before 2:4.16.0+dfsg-2 | 2:4.16.0+dfsg-2 |
| openSUSE:Leap 15.3 | apparmor | before 2.13.6-150300.3.11.2 | 2.13.6-150300.3.11.2 |
| openSUSE:Leap 15.3 | krb5 | before 1.19.2-150300.8.3.2 | 1.19.2-150300.8.3.2 |
| openSUSE:Leap 15.3 | krb5-mini | before 1.19.2-150300.8.3.2 | 1.19.2-150300.8.3.2 |
| openSUSE:Leap 15.3 | ldb | before 2.4.1-150300.3.10.1 | 2.4.1-150300.3.10.1 |
| openSUSE:Leap 15.3 | libapparmor | before 2.13.6-150300.3.11.1 | 2.13.6-150300.3.11.1 |
| openSUSE:Leap 15.3 | samba | before 4.15.4+git.324.8332acf1a63-150300.3.25.3 | 4.15.4+git.324.8332acf1a63-150300.3.25.3 |
| openSUSE:Leap 15.3 | sssd | before 1.16.1-150300.23.17.3 | 1.16.1-150300.23.17.3 |
| openSUSE:Leap 15.3 | talloc | before 2.3.3-150300.3.3.2 | 2.3.3-150300.3.3.2 |
| openSUSE:Leap 15.3 | talloc-man | before 2.3.3-150300.3.3.1 | 2.3.3-150300.3.3.1 |
| openSUSE:Leap 15.3 | tdb | before 1.4.4-150300.3.3.2 | 1.4.4-150300.3.3.2 |
| openSUSE:Leap 15.3 | tevent | before 0.11.0-150300.3.3.2 | 0.11.0-150300.3.3.2 |
| openSUSE:Leap 15.3 | tevent-man | before 0.11.0-150300.3.3.1 | 0.11.0-150300.3.3.1 |
| Red Hat:enterprise_linux:8::appstream | ctdb-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | libsmbclient-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | libwbclient-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | python3-samba-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-client-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-client-libs-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-common-libs-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-common-tools-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-debuginfo | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
| Red Hat:enterprise_linux:8::appstream | samba-debugsource | before 0:4.14.5-2.el8 | 0:4.14.5-2.el8 |
+54
Same product
samba: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7494Samba 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 cliKEV99Now
- CVE-2015-0240The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1.17, and 4.2.x befor66This week
- CVE-2003-0085Buffer overflow in the SMB/CIFS packet fragment re-assembly code for SMB daemon (smbd) in Samba before 2.2.8, and Samba-TNG before 0.3.1, al66This week
- CVE-2003-0201Buffer overflow in the call_trans2open function in trans2.c for Samba 2.2.x before 2.2.8a, 2.0.10 and earlier 2.0.x versions, and Samba-TNG 65This week
- CVE-2007-2446Multiple heap-based buffer overflows in the NDR parsing in smbd in Samba 3.0.0 through 3.0.25rc3 allow remote attackers to execute arbitrary63This week
- CVE-2012-1182The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement validation of an array len62This week
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:samba | 4.13.17-r0 · Alpine:v3.13 | Package registry (OSV) |
| debian:samba | 2:4.16.0+dfsg-2 · Debian:12 | Package registry (OSV) |
| opensuse:apparmor | 2.13.6-150300.3.11.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:krb5 | 1.19.2-150300.8.3.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:krb5-mini | 1.19.2-150300.8.3.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:ldb | 2.4.1-150300.3.10.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:libapparmor | 2.13.6-150300.3.11.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:samba | 4.15.4+git.324.8332acf1a63-150300.3.25.3 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:sssd | 1.16.1-150300.23.17.3 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:talloc | 2.3.3-150300.3.3.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:talloc-man | 2.3.3-150300.3.3.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:tdb | 1.4.4-150300.3.3.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:tevent | 0.11.0-150300.3.3.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:tevent-man | 0.11.0-150300.3.3.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:ctdb-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libsmbclient-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libwbclient-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-samba-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-client-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-client-libs-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-common-libs-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-common-tools-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-debugsource | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-krb5-printing-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:samba-libs-debuginfo | 0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| suse:apparmor | 2.13.6-150300.3.11.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:krb5 | 1.19.2-150300.8.3.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:ldb | 2.4.1-150300.3.10.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:libapparmor | 2.13.6-150300.3.11.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
+8
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- low · data or configuration can be modified
- Availability
- none
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.