Skip to main content
Mallory
Critical

Unauthenticated RCE in Samba printing subsystem via %J print command injection

IdentifiersCVE-2026-4480CWE-78· Improper Neutralization of Special…

CVE-2026-4480 is a command injection vulnerability in the Samba printing subsystem. When Samba is configured as a print server and the smb.conf "print command" option contains the "%J" substitution character, Samba passes a client-controlled print job description string into the configured shell command without properly escaping shell metacharacters. An attacker can submit a specially crafted print job description containing shell syntax, causing unintended command execution in the context of the print command handler. Samba’s fix removes support for "%J" in "print command" to eliminate this injection path.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can result in unauthenticated remote code execution on affected Samba print servers. Because the injected data is incorporated into a shell command, an attacker may execute arbitrary commands on the target host, potentially leading to full system compromise, data theft, service disruption, lateral movement, and ransomware deployment. The issue is especially severe where guest printing is enabled or permitted by default, reducing or eliminating authentication barriers.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, audit smb.conf and remove "%J" from any "print command" definitions. Systems using "printing = cups" or "printing = iprint" are stated to be unaffected. Wrapping %J in single quotes may reduce risk but does not fully prevent abuse, as option injection may still be possible. Restrict or disable guest printing where feasible and monitor for suspicious or anomalous print job activity.

Remediation

Patch, then assume compromise.

Upgrade Samba to a fixed release. The provided content identifies Samba 4.22.10, 4.23.8, and 4.24.3 as patched versions. If distribution-packaged Samba is used, apply the vendor security update that incorporates the upstream fix. The upstream fix removes support for "%J" in the "print command" configuration.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Red HatEnterprise Linuxoperating_system
Red HatOpenshift Container Platformapplication
SambaSambaapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity15

Community discussion across Reddit, Mastodon, and other social sources.