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-4480

CVE-2026-4480: Samba Printing Subsystem RCE Vulnerability

CVE-2026-4480 is a remote code execution vulnerability in the Samba printing subsystem caused by improper sanitization of job descriptions. This article covers technical details, affected versions, and mitigation steps.

Published: May 28, 2026

CVE-2026-4480 Overview

CVE-2026-4480 is a command injection vulnerability in the Samba printing subsystem. Samba passes the client-controlled job description string to the command configured by the print command setting through the %J substitution character. The implementation fails to escape shell metacharacters before invoking the command. A remote attacker with authenticated access to a print share can submit a print job whose description contains shell control characters. The injected payload executes in the context of the Samba print service, enabling arbitrary command execution on the host. The flaw is tracked under CWE-78, OS Command Injection.

Critical Impact

Authenticated remote attackers can achieve arbitrary command execution on Samba servers that use the print command directive with %J substitution, compromising confidentiality, integrity, and availability of the host.

Affected Products

  • Samba file and print server software (specific versions to be confirmed by upstream advisory)
  • Red Hat Enterprise Linux distributions packaging affected Samba builds
  • Any Linux or Unix system running Samba with print command configured to use %J

Discovery Timeline

  • 2026-05-26 - CVE-2026-4480 published to the National Vulnerability Database
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-4480

Vulnerability Analysis

The vulnerability resides in how smbd constructs the shell command line specified by the print command configuration directive. When Samba processes a print job, it substitutes the %J macro with the job description supplied by the client over the SMB protocol. Samba inserts this string directly into a shell command without quoting or sanitizing shell metacharacters such as backticks, semicolons, pipes, or $() constructs. The shell then interprets attacker-controlled content as executable syntax rather than literal data. Because the print command runs under the privileges of the Samba service, successful exploitation provides command execution at that privilege level. The attack changes scope from the print spooler context to the broader operating system, which explains the elevated impact across confidentiality, integrity, and availability.

Root Cause

The root cause is missing input neutralization before passing client-supplied data to a shell interpreter, a classic instance of CWE-78. Samba treats the %J job description as a trusted token during macro expansion. The product does not apply shell-quote escaping or argument-array execution. Any character with shell semantics is preserved in the final command string, breaking the boundary between code and data.

Attack Vector

An attacker authenticates to a Samba share that has printing enabled and a print command configured to reference %J. The attacker submits a print job whose description field contains shell metacharacters and an injected command payload. When smbd invokes the configured print command, the shell parses the injected sequence and executes the attacker's commands. The attack is performed over the network and requires low-privilege authenticated access. Exploitation complexity is higher because the target must use a vulnerable print command configuration that references the %J macro.

No verified public exploit code is available. The vulnerability mechanism is documented in the Samba Bug Report #16033 and the Red Hat CVE-2026-4480 Advisory.

Detection Methods for CVE-2026-4480

Indicators of Compromise

  • Unexpected child processes spawned by smbd such as sh, bash, wget, curl, nc, python, or perl.
  • Print job description fields in Samba logs containing shell metacharacters like `, ;, |, &, or $(.
  • Outbound network connections originating from the Samba service user to attacker-controlled hosts.
  • New files or scheduled tasks created shortly after print job submission events in log.smbd.

Detection Strategies

  • Inspect Samba print job logs for job names that include shell control characters or command syntax.
  • Monitor process ancestry on Samba hosts and alert on smbd parenting interactive shells or network utilities.
  • Correlate authenticated SMB sessions with subsequent process executions to surface anomalous spawn patterns.
  • Audit smb.conf across the fleet for print command directives that include the %J macro.

Monitoring Recommendations

  • Forward smbd audit logs and Linux process telemetry to a centralized analytics platform for cross-host correlation.
  • Enable Linux auditd rules for execve calls made by the Samba service account.
  • Track changes to /etc/samba/smb.conf and printing-related include files with file integrity monitoring.

How to Mitigate CVE-2026-4480

Immediate Actions Required

  • Inventory all Samba servers and identify those configured with a print command that references %J.
  • Apply vendor patches as soon as they are released for your Samba distribution. Track status through the Red Hat CVE-2026-4480 Advisory.
  • Restrict access to Samba print shares to trusted authenticated users only.
  • Review historical print job logs for evidence of shell metacharacter injection.

Patch Information

Upstream fixes are tracked in Samba Bug Report #16033 and the corresponding Red Hat Bug Report #2452232. Distribution maintainers will ship updated Samba packages that escape shell metacharacters in the %J substitution or pass arguments without invoking a shell. Administrators should subscribe to their vendor's security feed and deploy patched packages once published.

Workarounds

  • Disable printing services on Samba hosts that do not require them by setting load printers = no and removing [printers] shares.
  • Replace print command configurations that use %J with commands that do not include the job description, or omit the %J macro entirely.
  • Run Samba print services under a least-privilege account isolated from sensitive data and credentials.
  • Restrict Samba network exposure to internal management networks using firewall rules until patches are applied.
bash
# Configuration example: remove %J usage from print command in smb.conf
# Vulnerable example:
#   print command = /usr/local/bin/handle_job.sh %s %J
# Hardened example (omit %J entirely):
print command = /usr/local/bin/handle_job.sh %s

# Or disable printing entirely on hosts that do not need it:
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSamba

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/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-4480 Advisory

  • Red Hat Bug Report #2452232

  • Samba Bug Report #16033
  • Related CVEs
  • CVE-2026-4408: Samba RCE Vulnerability via Script Flaw

  • 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