Skip to content
Heist/ feed
Back to feed
Critical

Samba: samba: remote code execution in printing subsystem via unescaped job description

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-4480
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:24 UTC · Revision 1

Source evidence

Samba: samba: remote code execution in printing subsystem via unescaped job description

core-osv · Original source

Published 26 May 2026, 13:56 UTC

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.

osv:CVE-2026-4480
Complete source record
{
  "id": "3d370cf658ae543f5cfac6d4965d690bfbd1fbbce8ac7034b20e6150ebcec7f9",
  "url": "https://osv.dev/vulnerability/CVE-2026-4480",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Samba: samba: remote code execution in printing subsystem via unescaped job description",
    "summary": "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.",
    "evidence": "osv:CVE-2026-4480",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-4480",
      "aliases": [
        "CVE-2026-4480"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/samba-team/samba",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a6fb418be7adccdd583a3b489b58023cfdd392ef"
                },
                {
                  "fixed": "c2633a95a88f5f777fc94a25a07f1faa47420fc5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "fixed": "4.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4480.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.364771506Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4480.json",
        "https://access.redhat.com/errata/RHSA-2026:22644",
        "https://access.redhat.com/errata/RHSA-2026:22963",
        "https://access.redhat.com/errata/RHSA-2026:25049",
        "https://access.redhat.com/errata/RHSA-2026:25979",
        "https://access.redhat.com/errata/RHSA-2026:28053",
        "https://access.redhat.com/errata/RHSA-2026:28054",
        "https://access.redhat.com/errata/RHSA-2026:28055",
        "https://access.redhat.com/errata/RHSA-2026:28056",
        "https://access.redhat.com/errata/RHSA-2026:28057",
        "https://access.redhat.com/errata/RHSA-2026:28058",
        "https://access.redhat.com/errata/RHSA-2026:28132",
        "https://access.redhat.com/security/cve/CVE-2026-4480",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4480.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-4480",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2452232",
        "https://bugzilla.samba.org/show_bug.cgi?id=16033"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0:4.23.5-109.el10_2"
                  },
                  {
                    "fixed": "0:4.21.3-114.el10_0.1"
                  },
                  {
                    "fixed": "0:4.10.16-26.el7_9.1"
                  },
                  {
                    "fixed": "0:4.10.16-26.el7_9.1"
                  },
                  {
                    "fixed": "0:4.19.4-16.el8_10"
                  },
                  {
                    "fixed": "0:4.19.4-16.el8_10"
                  },
                  {
                    "fixed": "0:4.13.3-12.el8_4.1"
                  },
                  {
                    "fixed": "0:4.13.3-12.el8_4.1"
                  },
                  {
                    "fixed": "0:4.15.5-16.el8_6.1"
                  },
                  {
                    "fixed": "0:4.15.5-16.el8_6.1"
                  },
                  {
                    "fixed": "0:4.17.5-7.el8_8.1"
                  },
                  {
                    "fixed": "0:4.17.5-7.el8_8.1"
                  },
                  {
                    "fixed": "0:4.23.5-10.el9_8"
                  },
                  {
                    "fixed": "0:4.23.5-10.el9_8"
                  },
                  {
                    "fixed": "0:4.17.5-105.el9_2.5"
                  },
                  {
                    "fixed": "0:4.19.4-105.el9_4.4"
                  },
                  {
                    "fixed": "0:4.21.3-14.el9_6.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "InverseAffectedRanges"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4480.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-4480",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489795,
  "published_at": "2026-05-26T13:56:32.355+00:00"
}