Samba · Public exploit code

PoC published for command injection in Samba printing subsystem

· 1 min read

A flaw in Samba's printing subsystem (CVE-2026-4480, CVSS 9.8) lets a client-controlled print job name inject shell commands when %J is used in a custom print command. A public proof of concept exists and, in affected configurations, the impact is unauthenticated remote code execution, according to DarkWebInformer. Update to Samba 4.22.10, 4.23.8, or 4.24.3 and review print commands using %J.

WhatsApp LinkedIn X
HighVulnerabilityPublic exploit codePatched
In this article
  1. What happened
  2. Why it matters
  3. What to do
  4. For the technical team
  5. Timeline
  6. Sources

What happened

A public proof of concept exploits a critical flaw (CVSS 9.8) in Samba's printing subsystem, CVE-2026-4480. A client-controlled print job name can inject commands into the server when %J is used in a custom print command. In affected configurations, the result is unauthenticated remote code execution.

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Why it matters

An attacker can run code on the file and print server without credentials, opening a path to data theft, ransomware, and lateral movement. It affects Samba versions before 4.22.10, 4.23.8, and 4.24.3, a common component in corporate Linux environments. Exploitation requires a custom print command using %J.

What to do

Update Samba to 4.22.10, 4.23.8, or 4.24.3. Until done, remove %J from custom print commands and follow the detection and mitigation guidance in the PoC repository.

For the technical team

CVE
CVE-2026-4480
Affected
Samba (subsistema de impressão) · Samba < 4.22.10, < 4.23.8, and < 4.24.3, with %J in a custom print command.
Exploitation
Public PoC released, with a repository documenting the vulnerable configuration, attack path, affected versions, detection guidance, and mitigation steps. Reported by DarkWebInformer. The sources report no real-world exploitation.
Fix
Update to Samba 4.22.10, 4.23.8, or 4.24.3. Mitigation: stop using %J in custom print commands; the PoC repository lists mitigation steps.
Vector
Samba printing subsystem. Shell command injection: the client-controlled print job name reaches the shell without proper escaping when %J is used inside a custom print command, and shell metacharacters alter the executed command. Unauthenticated under affected configurations.
More details
CVSS 9.8. Unauthenticated remote code execution applies only under affected configurations, with %J in a custom print command. The PoC repository includes detection guidance.

Timeline

  1. PoC published for Samba command injection via print job name with %J.

Sources 1 source

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how. After signing up you get the full feed.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click