A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4408

CVE-2026-4408: Samba RCE Vulnerability via Script Flaw

CVE-2026-4408 is a remote code execution vulnerability in Samba that exploits improper shell character escaping in the check password script feature. This article covers technical details, affected systems, and mitigation.

Published: May 28, 2026

CVE-2026-4408 Overview

CVE-2026-4408 is a command injection vulnerability [CWE-78] in Samba file servers and classic domain controllers. The flaw resides in the check password script feature when configured with the %u substitution character. Samba passes the client-controlled username into the shell without escaping shell meta-characters. A remote attacker can supply a crafted username containing shell metacharacters to execute arbitrary commands on the affected host. The issue primarily affects non-standard configurations where the check password script uses %u and the samba-dcerpcd service runs as a system service.

Critical Impact

Remote attackers can achieve unauthenticated command execution on Samba servers that use the check password script directive with the %u placeholder.

Affected Products

  • Samba file servers using the check password script feature with %u
  • Samba classic domain controllers using the check password script feature with %u
  • Systems running samba-dcerpcd as a system service in the above configuration

Discovery Timeline

  • 2026-05-28 - CVE-2026-4408 published to the National Vulnerability Database (NVD)
  • 2026-05-28 - Last updated in NVD database

Technical Details for CVE-2026-4408

Vulnerability Analysis

The vulnerability is a classic OS command injection issue in Samba's password validation hook. Samba allows administrators to define an external check password script that runs whenever a password change request is received. The %u token in this directive is replaced with the username supplied by the client. Because Samba does not sanitize or escape shell metacharacters before constructing the command line, attacker-supplied characters such as ;, |, `, and $() are interpreted by the shell. The resulting command runs in the security context of the Samba service, which is typically privileged. This produces full remote command execution from a single authentication-related request.

Root Cause

The root cause is unsafe string interpolation of untrusted input into a shell command. Samba substitutes the raw username from the wire into the configured script invocation without using safe argument passing or escaping. The username field is attacker-controlled before authentication completes, so no valid credentials are required to reach the vulnerable code path.

Attack Vector

An attacker connects to the Samba service over the network and initiates a password change or related operation that triggers the check password script hook. The attacker supplies a username containing shell metacharacters and command payloads. When Samba executes the configured script, the shell interprets the injected sequence and runs the attacker's commands. Exploitation requires the target to have the non-default check password script configured with %u and samba-dcerpcd running as a system service.

No verified proof-of-concept code is publicly available. Refer to the Samba Bugzilla Report #16034 and the Red Hat CVE-2026-4408 Advisory for upstream technical detail.

Detection Methods for CVE-2026-4408

Indicators of Compromise

  • Unexpected child processes spawned by smbd, samba-dcerpcd, or the configured password script interpreter
  • Shell metacharacters such as ;, |, `, $(, or && appearing in username fields within Samba authentication logs
  • Outbound network connections originating from the Samba service to unfamiliar hosts shortly after password change requests

Detection Strategies

  • Audit smb.conf across the fleet for any check password script directive that contains the %u token
  • Enable Samba debug logging at a level that records the resolved command line and review for metacharacter content
  • Correlate process execution telemetry with parent process samba-dcerpcd or smbd to identify anomalous shell invocations

Monitoring Recommendations

  • Forward Samba and Linux auditd logs to a centralized SIEM or data lake for cross-host correlation
  • Alert on any new child process of the Samba daemons that is not the expected password script binary
  • Monitor for failed and successful password change RPCs originating from untrusted network segments

How to Mitigate CVE-2026-4408

Immediate Actions Required

  • Inventory all Samba hosts and identify any smb.conf containing check password script combined with the %u substitution
  • Remove the %u token from the directive or disable the check password script setting until a patched release is deployed
  • Restrict network access to smbd and samba-dcerpcd ports to trusted management networks

Patch Information

Consult the Red Hat CVE-2026-4408 Advisory and Red Hat Bugzilla Report #2479762 for distribution-specific patched package versions. Upstream tracking is available in Samba Bugzilla Report #16034. Apply vendor updates as soon as they become available for your platform.

Workarounds

  • Remove %u from the check password script directive and pass the username through a wrapper that validates input against an allowlist
  • Stop and disable samba-dcerpcd as a system service where it is not required
  • Limit Samba password change endpoints to authenticated administrative networks using host-based firewall rules
bash
# Example: locate vulnerable configurations across hosts
grep -RnE '^\s*check password script\s*=.*%u' /etc/samba/ /etc/

# Temporary mitigation: comment out the directive until patched
sudo sed -i 's/^\(\s*check password script\s*=.*%u.*\)/# \1/' /etc/samba/smb.conf
sudo systemctl restart smb nmb samba-dcerpcd

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSamba

  • SeverityCRITICAL

  • CVSS Score9.0

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Red Hat CVE-2026-4408 Advisory

  • Red Hat Bugzilla Report #2479762

  • Samba Bugzilla Report #16034
  • Related CVEs
  • CVE-2026-4480: Samba Printing Subsystem RCE Vulnerability

  • CVE-2025-10230: Samba WINS Hook RCE Vulnerability

  • CVE-2021-44142: Samba vfs_fruit Module RCE Vulnerability

  • CVE-2022-29154: Samba Rsync RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English