Skip to content
Noroxi
CVE-2021-43566· NVD / CVE Program· CNA mitre

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.

LowCVSS 2.5 · v3.1—No exploit Fix available
Published
Jan 11, 2022
Updated
Jun 17, 2026
EPSS
0.4% · 29th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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

VendorProduct
sambasamba

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.

EcosystemPackageAffected rangeFix
Alpine:v3.13sambabefore 4.13.17-r04.13.17-r0
Debian:12sambabefore 2:4.16.0+dfsg-22:4.16.0+dfsg-2
openSUSE:Leap 15.3apparmorbefore 2.13.6-150300.3.11.22.13.6-150300.3.11.2
openSUSE:Leap 15.3krb5before 1.19.2-150300.8.3.21.19.2-150300.8.3.2
openSUSE:Leap 15.3krb5-minibefore 1.19.2-150300.8.3.21.19.2-150300.8.3.2
openSUSE:Leap 15.3ldbbefore 2.4.1-150300.3.10.12.4.1-150300.3.10.1
openSUSE:Leap 15.3libapparmorbefore 2.13.6-150300.3.11.12.13.6-150300.3.11.1
openSUSE:Leap 15.3sambabefore 4.15.4+git.324.8332acf1a63-150300.3.25.34.15.4+git.324.8332acf1a63-150300.3.25.3
openSUSE:Leap 15.3sssdbefore 1.16.1-150300.23.17.31.16.1-150300.23.17.3
openSUSE:Leap 15.3tallocbefore 2.3.3-150300.3.3.22.3.3-150300.3.3.2
openSUSE:Leap 15.3talloc-manbefore 2.3.3-150300.3.3.12.3.3-150300.3.3.1
openSUSE:Leap 15.3tdbbefore 1.4.4-150300.3.3.21.4.4-150300.3.3.2
openSUSE:Leap 15.3teventbefore 0.11.0-150300.3.3.20.11.0-150300.3.3.2
openSUSE:Leap 15.3tevent-manbefore 0.11.0-150300.3.3.10.11.0-150300.3.3.1
Red Hat:enterprise_linux:8::appstreamctdb-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamlibsmbclient-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamlibwbclient-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreampython3-samba-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-client-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-client-libs-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-common-libs-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-common-tools-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-debuginfobefore 0:4.14.5-2.el80:4.14.5-2.el8
Red Hat:enterprise_linux:8::appstreamsamba-debugsourcebefore 0:4.14.5-2.el80:4.14.5-2.el8

+54

Other 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 cliKEV
    99Now
  • 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 befor
    66This 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, al
    66This 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 arbitrary
    63This 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 len
    62This 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 / packageFixed versionSource
alpine:samba4.13.17-r0 · Alpine:v3.13Package registry (OSV)
debian:samba2:4.16.0+dfsg-2 · Debian:12Package registry (OSV)
opensuse:apparmor2.13.6-150300.3.11.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:krb51.19.2-150300.8.3.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:krb5-mini1.19.2-150300.8.3.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:ldb2.4.1-150300.3.10.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:libapparmor2.13.6-150300.3.11.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:samba4.15.4+git.324.8332acf1a63-150300.3.25.3 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:sssd1.16.1-150300.23.17.3 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:talloc2.3.3-150300.3.3.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:talloc-man2.3.3-150300.3.3.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:tdb1.4.4-150300.3.3.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:tevent0.11.0-150300.3.3.2 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:tevent-man0.11.0-150300.3.3.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:ctdb-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libsmbclient-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:libwbclient-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:python3-samba-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-client-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-client-libs-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-common-libs-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-common-tools-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-debugsource0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-krb5-printing-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:samba-libs-debuginfo0:4.14.5-2.el8 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
suse:apparmor2.13.6-150300.3.11.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package registry (OSV)
suse:krb51.19.2-150300.8.3.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package registry (OSV)
suse:ldb2.4.1-150300.3.10.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package registry (OSV)
suse:libapparmor2.13.6-150300.3.11.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package 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.

EPSS, last 120 days

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.

Finders, 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

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.

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 help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records