Cyber Security News

Samba Security Flaw Lets Attackers Execute Code Remotely

A critical security vulnerability in Samba’s printing subsystem has been disclosed, allowing unauthenticated attackers to execute arbitrary code remotely on affected servers. Tracked as CVE-2026-4480, the flaw carries a maximum CVSS score of 10.0, highlighting its severe impact on confidentiality, integrity, and availability.

The issue affects Samba print servers configured with the “print command” and the %J substitution parameter. Samba, widely deployed across enterprise and Linux environments for file and print sharing, improperly handles user-supplied input in this parameter.

Specifically, the client-controlled job description string is passed directly to shell commands without proper sanitization, enabling command injection.

Samba Security RCE Flaw

The vulnerability arises because Samba fails to escape shell meta characters when processing the %J substitution. As a result, attackers can craft malicious print job descriptions containing shell commands that are executed on the server.

Since many Samba print servers allow guest printing by default, exploitation can occur without authentication, significantly increasing the risk.

Not all configurations are vulnerable. Systems using “printing = cups” or “printing = iprint” are not affected, nor are servers that do not include %J in their print command configuration. However, environments that rely on legacy or custom print command settings are particularly exposed.

Although wrapping %J in single quotes (e.g., ‘%J’) can reduce the likelihood of exploitation, it does not fully eliminate the risk. Attackers may still inject malicious command-line arguments, making this mitigation insufficient as a long-term solution.

The Samba team has released security updates to address this flaw in versions 4.22.10, 4.23.8, and 4.24.3. Administrators are strongly advised to upgrade immediately or apply the official patches available through Samba’s security advisory page.

For systems where immediate patching is not feasible, temporary workarounds are recommended. These include removing the %J substitution entirely from the “print command” setting in the smb.conf file or enclosing it in single quotes to reduce risk exposure. However, these measures should be considered interim protections rather than complete fixes.

The vulnerability was discovered and reported by security researchers from SafeBreach, ZeroPath, and Securin Labs. The Samba development team, including contributors from Sernet and Catalyst, has released patches and coordinated the advisory.

Given Samba’s widespread use in enterprise networks and its default configurations that may permit guest access, this vulnerability presents a high-risk attack vector. Organizations should prioritize patching and review their print service configurations to prevent potential exploitation.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

4 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

34 minutes ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

43 minutes ago

OpenAI’s New GPT-6 Cyber Finds 81 High-Severity Firefox Vulnerabilities and 948 Linux Kernel Exploits

OpenAI has introduced GPT-6 Cyber, a security-focused model built to find and validate exploitable vulnerabilities…

58 minutes ago

OpenMatter Network Positions Decentralized Computing as an Alternative to Data Centers for AI

Melbourne, Florida, November 5th, 2026, CyberNewswire OpenMatter Network, a pioneer in decentralized infrastructure for agentic…

13 hours ago

China-Aligned Hackers Hijack Popular Sogou Keyboard Software to Secretly Install DarkVigil Malware

A China-aligned espionage group abused the update traffic of Sogou Input Method, one of China's…

18 hours ago