---
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
published: '2026-08-24'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T03:17:36.920'
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
tags:
  - nvd
epss: 0.00197
epssPercentile: 0.08686
ingestedAt: '2026-10-14T04:12:54.294Z'
---

## 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.
