---
id: CVE-2026-78367
title: A vulnerability was found in RPM's rpmbuild tarball processing
summary: >-
  A vulnerability was found in RPM's rpmbuild tarball processing. When
  processing a crafted source archive, the getTarSpec() function in
  tools/rpmbuild.cc passes an attacker-controlled tar archive member name to
  rpmExpand() as part of a %{…
severity: high
cvss: 7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: Red Hat
product: Red Hat Hardened Images
affected:
  - enterprise_linux 10
  - enterprise_linux 6
  - enterprise_linux 7
  - enterprise_linux 8
  - enterprise_linux 9
  - hardened_images
patched:
  - hardened_images
published: '2026-08-24'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-78367'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:82378'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-78367'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521857'
    label: secalert@redhat.com
  - url: 'https://github.com/rpm-software-management/rpm/issues/4314'
    label: secalert@redhat.com
  - url: 'https://github.com/rpm-software-management/rpm/issues/4314'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-78367.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-78367'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-78367'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - exploit-available
epss: 0.00199
epssPercentile: 0.09584
ingestedAt: '2026-10-14T04:12:54.294Z'
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-08-24T15:13:40.183552Z'
---

## Overview

A vulnerability was found in RPM's rpmbuild tarball processing. When processing a crafted source archive, the getTarSpec() function in tools/rpmbuild.cc passes an attacker-controlled tar archive member name to rpmExpand() as part of a %{basename:...} macro expression. A specially crafted .spec member name can therefore inject RPM macros, including Lua expressions, resulting in arbitrary code execution with the privileges of the user running rpmbuild. This can be exploited when a victim or automated build system processes an attacker-controlled source tarball using rpmbuild tarball mode (such as -ts, -ta, or -tb).

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:82378** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-10-13 · [advisory](https://access.redhat.com/errata/RHSA-2026:82378)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-10-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-78367.json)
