Skip to main content

Samba CVE-2026-4408

| EUVDEUVD-2026-32741 CRITICAL
OS Command Injection (CWE-78)
N/A vendor:alpine GHSA-jg8v-92xc-cx65
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed SMB service
  2. Delivery
    Send crafted SMB request with shell metacharacters
  3. Exploit
    Trigger OS command injection in helper
  4. Execution
    Execute commands as Samba service user
  5. Persist
    Establish reverse shell and persist
  6. Impact
    Pivot to domain/credential theft

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Based on the supplied CVSS vector (AV:N/AC:L/PR:N/UI:N), exploitation requires only network reachability to the Samba service (typically TCP 445, also 139) with no authentication and no user interaction against default Samba deployments on Alpine, RHEL 6/7/9, and OpenShift Container Platform 4.0. Limiting factors that materially reduce real-world exposure: Samba is usually firewalled off from the internet, many production deployments require SMB authentication before reaching vulnerable code paths, and CWE-78 flaws in Samba have historically been gated on specific server-side features (printing integration, *_command smb.conf directives, or particular VFS modules) being enabled - none of which are confirmed by the terse Alpine-style description, so operators should verify against Samba Bugzilla 16034 whether their configuration actually exposes the vulnerable code path.

Impact

Signals are mixed and require honest interpretation. The CVSS 9.8 vector (AV:N/AC:L/PR:N/UI:N, full CIA impact) and Samba's typical exposure on TCP/445 argue for treating this as high priority, especially because OS command injection on a file/auth server gives an attacker code execution as the Samba service account (often root or a high-privilege user). However, EPSS is only 0.23% at the 46th percentile, this CVE is NOT listed in CISA KEV, and no public exploit identified at time of analysis, indicating the vulnerability is not currently seeing mass exploitation. The Alpine-style description ('samba fixed in 4.23.8-r0') is unusually thin and contains no technical detail about the precise vulnerable code path, so the AV:N rating cannot be independently corroborated from the description alone - it is plausible that exploitation actually requires authenticated SMB access or a non-default configuration (e.g., a specific VFS or print hook), in which case real-world risk is lower than 9.8 suggests. Defenders should verify the exact vulnerable component via the Red Hat (Bugzilla 2479762) and Samba (Bugzilla 16034) advisories before deprioritizing.

Exploit ScenarioDerived

An attacker with network reachability to TCP/445 on a vulnerable Samba server sends a crafted SMB request containing shell metacharacters in a field that Samba passes to a shell-invoking helper, causing the smbd process to execute attacker-supplied commands as the Samba service account. From there the attacker drops a reverse shell, harvests credentials and Kerberos tickets, and pivots into the Active Directory or Linux fleet. No public PoC is identified in the supplied data, so realistic short-term exploitation likely requires the attacker to first reproduce the bug from the Red Hat/Samba Bugzilla entries.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 15, 2026

Command injection in Samba (CWE-78) carries a critical CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) and is fixed in Alpine Linux package samba 4.23.8-r0, with Red Hat shipping errata RHSA-2026:22644, 22963, 25049, and 25979 for Enterprise Linux 6/7/9 and OpenShift Container Platform 4.0. The flaw allows remote attackers to inject operating-system commands against vulnerable Samba deployments, yielding full confidentiality, integrity, and availability impact. EPSS is modest at 0.23% (46th percentile) and no public exploit identified at time of analysis, but the unauthenticated network attack surface of Samba makes urgent patching warranted.

Earlier versions of this analysis (4)
v4 Jun 15, 2026 - 22:28 cvss changed CVSS 9.8

Command injection in Samba (CWE-78) allows remote unauthenticated attackers to execute arbitrary OS commands against affected installations, with CVSS 9.8 reflecting full confidentiality, integrity, and availability impact. The flaw affects Samba across multiple Linux distributions including Alpine Linux (fixed in 4.23.8-r0), Red Hat Enterprise Linux 6/7/9, and OpenShift Container Platform 4.0. There is no public exploit identified at time of analysis, and EPSS sits at a modest 0.23% (46th percentile) despite the critical CVSS score.

v3 May 28, 2026 - 09:28 cvss changed CVSS 9.0

OS command injection in Samba (CWE-78) on Alpine Linux affects releases prior to 4.23.8-r0, enabling remote attackers without credentials to inject operating system commands that execute with the privileges of the Samba service. The CVSS 9.0 rating reflects a scope-changed impact with full compromise of confidentiality, integrity, and availability, though attack complexity is rated High (AC:H), indicating non-trivial preconditions. No public exploit identified at time of analysis, and the issue is not currently listed in CISA KEV.

v2 May 28, 2026 - 09:27 cvss changed CVSS 9.0

Command injection in Samba (Alpine Linux package prior to 4.23.8-r0) allows remote unauthenticated attackers to execute arbitrary OS commands on affected file/print servers, with a CVSS 9.0 (scope-changed) rating reflecting cross-component impact. No public exploit identified at time of analysis, but the network-reachable, no-auth vector and CWE-78 root cause make this a high-priority patch for any Linux host exposing SMB/CIFS or related Samba services.

v1 May 28, 2026 - 05:04

Samba on Alpine Linux received a security fix packaged as version 4.23.8-r0 in the Alpine Linux repositories. The specific vulnerability class, attack vector, and impact are not disclosed in available intelligence - only the fix packaging is confirmed. No CVSS score, CWE classification, or exploitation data is present, making independent severity assessment impossible from current data alone.

RemediationAI

On Alpine Linux, upgrade the samba package to 4.23.8-r0 or later via apk; on Red Hat Enterprise Linux 6, 7, and 9 and OpenShift Container Platform 4.0, apply the vendor-released patches from RHSA-2026:22644, RHSA-2026:22963, RHSA-2026:25049, and RHSA-2026:25979 (linked from https://access.redhat.com/security/cve/CVE-2026-4408), and on other distributions install the patched upstream Samba build referenced in Samba Bugzilla 16034. If immediate patching is not possible, restrict access to Samba's network ports (TCP 139/445 and UDP 137/138) to trusted management networks via host or perimeter firewalls - this breaks SMB client access from untrusted segments. As an additional compensating control, audit and disable any Samba features that invoke external shell scripts (for example printing = cups/print command, magic script, root preexec/preexec, and custom VFS modules that shell out), accepting that printing or login-script automation tied to these settings will stop working until the host is patched.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Samba is the open-source SMB/CIFS file, print, and authentication server widely deployed on Linux/Unix systems and embedded in Red Hat Enterprise Linux 6/7/9 and OpenShift Container Platform 4.0 (per the listed CPEs). CWE-78 (Improper Neutralization of Special Elements used in an OS Command) means user-supplied or network-supplied input is concatenated into a command interpreter (typically /bin/sh via system(), popen(), exec*() with a shell, or wrapper scripts) without proper escaping, letting metacharacters such as ;, |, backticks, or $() break out into attacker-controlled shell execution. In a Samba context this class of bug has historically appeared in helper scripts and external auxiliary modules (printing/scripting hooks, VFS modules, name resolution helpers) invoked by smbd/winbindd, which is consistent with the network attack vector reflected in CVSS.

Know when Samba gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Samba command-injection flaws historically require an authenticated SMB session to reach vulnerable helpers, so PR:L over PR:N; network reachable, low complexity, full CIA impact as smbd typically runs privileged.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Jun 15, 2026 - 22:28 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 15, 2026 - 22:28 vuln.today
v4 - CVSS changed
CVSS changed
Jun 15, 2026 - 22:22 NVD
9.0 (CRITICAL) 9.8 (CRITICAL)
Analysis Updated
May 28, 2026 - 09:28 vuln.today
v3 - CVSS changed
Analysis Updated
May 28, 2026 - 09:27 vuln.today
v2 - CVSS changed
CVSS changed
May 28, 2026 - 09:22 NVD
9.0 (CRITICAL)

DescriptionNVD

Alpine Linux: samba fixed in 4.23.8-r0

Executive ViewAI

Why It Matters

Samba file sharing infrastructure is vulnerable to unauthenticated remote command injection (CVE-2026-4408, CVSS 9.8), enabling attackers to execute arbitrary commands with full system access. No public exploit code is currently identified, but the critical severity, universal organizational deployment, and open network attack surface create severe risk to data confidentiality and system availability.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 54% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Affected Products (CPE)NVD

cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

More in Samba

View all
CVE-2017-7494 CRITICAL POC
9.8 May 30

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

CVE-2012-1182 CRITICAL POC
10.0 Apr 10

The 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 valida

CVE-2015-0240 CRITICAL POC
10.0 Feb 24

The 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

CVE-2016-2118 HIGH POC
7.5 Apr 12

The MS-SAMR and MS-LSAD protocol implementations in Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x befor

CVE-2013-4124 MEDIUM POC
5.0 Aug 06

Integer overflow in the read_nttrans_ea_list function in nttrans.c in smbd in Samba 3.x before 3.5.22, 3.6.x before 3.6.

CVE-2014-3560 HIGH
7.9 Aug 06

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 exec

CVE-2023-34966 HIGH
7.5 Jul 20

An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated high severity (CVSS 7.5), th

CVE-2023-34967 MEDIUM
5.3 Jul 20

A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated medium severity (CVSS 5.3),

CVE-2012-0870 HIGH
7.9 Feb 23

Heap-based buffer overflow in process.c in smbd in Samba 3.0, as used in the file-sharing service on the BlackBerry Play

CVE-2015-7540 HIGH
7.5 Dec 29

The LDAP server in the AD domain controller in Samba 4.x before 4.1.22 does not check return values to ensure successful

CVE-2017-15275 HIGH
7.5 Nov 27

Samba before 4.7.3 might allow remote attackers to obtain sensitive information by leveraging failure of the server to c

CVE-2017-14746 CRITICAL
9.8 Nov 27

Use-after-free vulnerability in Samba 4.x before 4.7.3 allows remote attackers to execute arbitrary code via a crafted S

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy