A flaw was found in the way samba implemented SMB1 authentication.
A flaw was found in the way samba implemented SMB1 authentication. An attacker could use this flaw to retrieve the plaintext password sent over the wire even if Kerberos authentication was required.
- BDU:2021-05993
- ALSA-2021:5082
- DLA-3563-1
- DSA-5003-1
- openSUSE-SU-2021:1471-1
- openSUSE-SU-2021:3647-1
- openSUSE-SU-2021:3650-1
- openSUSE-SU-2021:3674-1
- openSUSE-SU-2024:11631-1
- RHSA-2021:4843
- RHSA-2021:4844
- RHSA-2021:5082
- RHSA-2021:5192
- RHSA-2022:0008
- RHSA-2022:0074
- RLSA-2021:5082
- SUSE-SU-2021:3647-1
- SUSE-SU-2021:3649-1
- SUSE-SU-2021:3650-1
- SUSE-SU-2021:3673-1
- Published
- Feb 18, 2022
- Updated
- Jun 16, 2026
- EPSS
- 1.8% · 77th percentile
- CWE
- CWE-287
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
24
Monitor
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.8%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| samba | samba | cpe:2.3:a:samba:samba |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| redhat | codeready linux builder | cpe:2.3:a:redhat:codeready_linux_builder |
| redhat | gluster storage | cpe:2.3:a:redhat:gluster_storage |
| redhat | openstack | cpe:2.3:a:redhat:openstack |
| redhat | virtualization host | cpe:2.3:a:redhat:virtualization_host |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux eus | cpe:2.3:o:redhat:enterprise_linux_eus |
| redhat | enterprise linux for ibm z systems | cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems |
| redhat | enterprise linux for ibm z systems eus | cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus |
and 12 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux18.04
- canonical ubuntu linux20.04
- canonical ubuntu linux21.04
- canonical ubuntu linux21.10
- debian debian linux10.0
- debian debian linux9.0
- fedoraproject fedora33
- fedoraproject fedora34
- fedoraproject fedora35
- redhat codeready linux builderall versions
- redhat enterprise linux7.0
- redhat enterprise linux8.0
- redhat enterprise linux desktop7.0
- redhat enterprise linux eus8.2
- redhat enterprise linux eus8.4
- redhat enterprise linux for ibm z systems7.0
- redhat enterprise linux for ibm z systems8.0
- redhat enterprise linux for ibm z systems eus8.2
- redhat enterprise linux for ibm z systems eus8.4
- redhat enterprise linux for power big endian7.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a samba
- samba 4.15.2, samba 4.14.10, samba 4.13.14affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | libsmbclient-devel | before 4.14.5-7.el8_5 | 4.14.5-7.el8_5 |
| AlmaLinux:8 | libwbclient-devel | before 4.14.5-7.el8_5 | 4.14.5-7.el8_5 |
| AlmaLinux:8 | samba-devel | before 4.14.5-7.el8_5 | 4.14.5-7.el8_5 |
| AlmaLinux:8 | samba-vfs-iouring | before 4.14.5-7.el8_5 | 4.14.5-7.el8_5 |
| Alpine:v3.13 | samba | from 3.0.0 · before 4.13.17-r0 | 4.13.17-r0 |
| Alpine:v3.14 | samba | from 3.0.0 · before 4.14.12-r0 | 4.14.12-r0 |
| Alpine:v3.15 | samba | from 3.0.0 · before 4.15.2-r0 | 4.15.2-r0 |
| Debian:10 | samba | before 2:4.9.5+dfsg-5+deb10u4 | 2:4.9.5+dfsg-5+deb10u4 |
| Debian:11 | samba | before 2:4.13.13+dfsg-1~deb11u2 | 2:4.13.13+dfsg-1~deb11u2 |
| Debian:12 | samba | before 2:4.13.14+dfsg-1 | 2:4.13.14+dfsg-1 |
| openSUSE:Leap 15.2 | samba | before 4.11.14+git.308.666c63d4eea-lp152.3.28.1 | 4.11.14+git.308.666c63d4eea-lp152.3.28.1 |
| openSUSE:Leap 15.3 | ldb | before 2.2.2-3.3.1 | 2.2.2-3.3.1 |
| openSUSE:Leap 15.3 | samba | before 4.9.5+git.471.5edbe3dcae7-3.57.2 | 4.9.5+git.471.5edbe3dcae7-3.57.2 |
| openSUSE:Leap 15.3 | samba | before 4.13.13+git.528.140935f8d6a-3.12.1 | 4.13.13+git.528.140935f8d6a-3.12.1 |
| openSUSE:Leap 15.3 | samba | before 4.11.14+git.308.666c63d4eea-4.28.1 | 4.11.14+git.308.666c63d4eea-4.28.1 |
| openSUSE:Tumbleweed | samba | before 4.15.2+git.193.a4d6307f1fd-1.1 | 4.15.2+git.193.a4d6307f1fd-1.1 |
| Red Hat:enterprise_linux:7::client | libsmbclient | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | libsmbclient-devel | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | libwbclient | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | libwbclient-devel | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | samba | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-client | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-client-libs | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
| Red Hat:enterprise_linux:7::client | samba-common | before 0:4.10.16-17.el7_9 | 0:4.10.16-17.el7_9 |
+96
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 |
|---|---|---|
| almalinux:libsmbclient-devel | 4.14.5-7.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libwbclient-devel | 4.14.5-7.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:samba-devel | 4.14.5-7.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:samba-vfs-iouring | 4.14.5-7.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| alpine:samba | 4.13.17-r0 · Alpine:v3.13 | Package registry (OSV) |
| debian:samba | 2:4.13.14+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:ldb | 2.2.2-3.3.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:samba | 4.11.14+git.308.666c63d4eea-lp152.3.28.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| red hat:ctdb | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:ctdb-debuginfo | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libsmbclient | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libsmbclient-debuginfo | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libsmbclient-devel | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libwbclient | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libwbclient-debuginfo | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:libwbclient-devel | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:python3-samba | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:python3-samba-debuginfo | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:samba | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| red hat:samba-client | 0:4.14.5-204.el8rhgs · Red Hat:storage:3.5:samba:el8 | Package registry (OSV) |
| rocky linux:samba | 0:4.14.5-7.el8_5 · Rocky Linux:8 | Package registry (OSV) |
| suse:ldb | 2.2.2-3.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:samba | 4.13.13+git.528.140935f8d6a-3.12.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
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.
—
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
- CVE-2021-441423 days apartThe Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and intero57Plan
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-287 · Improper AuthenticationCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Root cause
Authentication is added route by route instead of being enforced in one place. When a route added later bypasses the shared middleware, the session check never runs for it.
The bug in code
The whole CWE-287 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
app.use("/admin", requireSession, adminRouter);
// Route added later skips the middlewareapp.post("/admin-api/config", updateConfig);Fixed
const admin = express.Router();admin.use(requireSession, requireRole("admin"));
admin.post("/config", updateConfig);app.use("/admin", admin);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)
- Authentication AbuseCAPEC-114Medium
- Authentication BypassCAPEC-115Medium
- Identity SpoofingCAPEC-151likelihood: Medium · Medium
- Fake the Source of DataCAPEC-194Medium
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- Utilizing REST's Trust in the System Resource to Obtain Sensitive DataCAPEC-57likelihood: Medium · Very High
- Session HijackingCAPEC-593likelihood: High · Very High
- Token ImpersonationCAPEC-633Medium
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
- bugzilla.redhat.com/show_bug.cgi?id=2019660
- lists.debian.org/debian-lts-announce/2023/09/msg00013.html
- security.gentoo.org/glsa/202309-06
- www.samba.org/samba/security/CVE-2016-2124.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.