CRITICAL🇵🇱 Wersja polska

CVE-2026-4480

CVSS 9.0v3.1pub. 2026-05-26upd. 2026-09-01

A flaw was found in the Samba printing subsystem. Samba passes the client-controlled job description string to the command configured with the "print command" setting via the "%J" substitution character without escaping shell meta characters. A remote attacker could exploit this vulnerability by sending a specially crafted print job description that contains unescaped shell characters. This could lead to remote code execution on the affected system.

🤖 AI Analysis
How it works

Samba passes a client-controlled print job description string to the command configured in the 'print command' setting using the '%J' substitution character. The problem is that shell meta characters are neither removed nor escaped before substitution. A remote attacker can send a specially crafted print job containing embedded shell special characters, resulting in the Samba server executing arbitrary system commands in the context of the printing process handler.

Impact

An attacker can gain remote control over the system (RCE), including reading and modifying data, installing software, and potentially escalating privileges. The scope of the breach includes confidentiality, integrity, and availability of the system at a critical level.

Mitigation & patch

Apply patches available from the vendor according to the references: Red Hat has provided fixes in errata RHSA-2026:22644 and RHSA-2026:22963. As a workaround, until the patch is implemented, it is recommended to disable printing functionality in Samba or remove the 'print command' directive from the configuration if printing is not required.

Who is affected

Samba (printing subsystem) and products integrating Samba: Red Hat OpenShift Container Platform, Red Hat Enterprise Linux — specific versions indicated in vendor references (errata RHSA-2026:22644 and RHSA-2026:22963)

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Red Hat Enterprise Linux

    OS
    Redhat
    10.07.08.09.0
  • Red Hat OpenShift Container Platform

    APP
    Redhat
    4.0
  • Samba

    APP
    Samba
    4.1.0 – 4.2.1 (excl.)
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCECommand Injection
CWE
References

Related vulnerabilities

CVE-2025-32463CRITICAL9.3⚠ KEVPL ✓same product

Sudo: eskalacja uprawnień do root poprzez opcję --chroot (CVE-2025-32463)

CVE-2021-40438CRITICAL9.0⚠ KEVPL ✓same product

SSRF w mod_proxy Apache HTTP Server — przekierowanie żądań przez atakującego

CVE-2019-7609CRITICAL10.0⚠ KEVPL ✓same product

RCE w Kibana Timelion — wykonanie kodu z uprawnieniami procesu

CVE-2019-1003029CRITICAL9.9⚠ KEVPL ✓same product

Jenkins Script Security Plugin — sandbox bypass umożliwiający RCE

CVE-2019-1003030CRITICAL9.9⚠ KEVPL ✓same product

Jenkins Pipeline Groovy Plugin — bypass sandbox i wykonanie kodu (RCE)