Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 samba 2:4.24.3+dfsg-1 —
Debian 13 samba 2:4.22.8+dfsg-0+deb13u2 —
Debian 12 samba 2:4.17.12+dfsg-0+deb12u4 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS samba 2:4.23.6+dfsg-1ubuntu2.1 —
Ubuntu 25.10 samba 2:4.22.3+dfsg-4ubuntu2.4 —
Ubuntu 24.04 LTS samba 2:4.19.5+dfsg-4ubuntu9.6 —
Ubuntu 22.04 LTS samba 2:4.15.13+dfsg-0ubuntu1.12 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS samba 2:4.15.13+dfsg-0ubuntu0.20.04.8+esm2 USN-8306-2
Ubuntu Pro 18.04 LTS samba No fix yet —
Ubuntu Pro 16.04 LTS samba No fix yet —
Ubuntu Pro 14.04 LTS samba No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 samba +36 4.23.5-109.el10_2 RHSA-2026:22963
RHEL 9 ctdb +37 4.23.5-10.el9_8 RHSA-2026:25049
RHEL 8 ctdb +33 4.19.4-16.el8_10 RHSA-2026:22644
RHEL 7 ctdb +1 4.10.16-26.el7_9.1 RHSA-2026:28132
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS samba +36 4.21.3-114.el10_0.1 RHSA-2026:28055
RHEL 9.6 EUS ctdb +37 4.21.3-14.el9_6.1 RHSA-2026:25979
RHEL 9.4 E4S ctdb +24 4.19.4-105.el9_4.4 RHSA-2026:28053
RHEL 9.2 E4S ctdb +24 4.17.5-105.el9_2.5 RHSA-2026:28054
RHEL 8.8 TUS ctdb +28 4.17.5-7.el8_8.1 RHSA-2026:28056
RHEL 8.8 E4S ctdb +28 4.17.5-7.el8_8.1 RHSA-2026:28056
RHEL 8.6 EUS Long Life ctdb +21 4.15.5-16.el8_6.1 RHSA-2026:28057
RHEL 8.6 AUS ctdb +21 4.15.5-16.el8_6.1 RHSA-2026:28057
RHEL 8.4 EUS Long Life ctdb +21 4.13.3-12.el8_4.1 RHSA-2026:28058
RHEL 8.4 AUS ctdb +21 4.13.3-12.el8_4.1 RHSA-2026:28058
RHEL 7 ELS samba +24 4.10.16-26.el7_9.1 RHSA-2026:28132

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 samba +36 4.23.5-109.el10_2 ALSA-2026:22963
AlmaLinux 9 samba +36 4.23.5-10.el9_8 ALSA-2026:25049
AlmaLinux 8 ctdb +33 4.19.4-16.el8_10 ALSA-2026:22644

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 samba 4.23.5-109.el10_2 RLSA-2026:22963
Rocky Linux 9 samba 4.23.5-10.el9_8 RLSA-2026:25049
Rocky Linux 8 samba 4.19.4-16.el8_10 RLSA-2026:22644
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23152-1, SUSE-SU-2026:23129-1, SUSE-SU-2026:22080-1
SLES 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23152-1, SUSE-SU-2026:23129-1, SUSE-SU-2026:22080-1
SLE Micro 6.2 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23003-1, SUSE-SU-2026:22045-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed samba 4.23.8+git.477.f78166bceed-1.1 openSUSE-SU-2026:10884-1
openSUSE Leap 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 openSUSE-SU-2026:21540-1, openSUSE-SU-2026:20905-1
ReleasePackageFixed inAdvisory
Alpine v3.24 samba 4.23.8-r0 —
Alpine v3.23 samba 4.22.10-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 samba +31 2:4.17.12-1.amzn2023.0.4 ALAS2023-2026-1895
Amazon Linux 2 ctdb +26 4.10.16-24.amzn2.0.7 ALAS2-2026-3493

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 samba No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 samba +36 4.23.5-109.el10_2 ELSA-2026-22963
Oracle Linux 9 samba +36 4.23.5-10.el9_8 ELSA-2026-25049
Oracle Linux 8 ctdb +34 4.19.4-16.0.1.el8_10 ELSA-2026-22644
Oracle Linux 7 ctdb +26 4.10.16-25.0.11.el7_9 ELSA-2026-28132

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 8 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 33

References