Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
CVE-2026-78367Published 24 Aug 2026, 13:48 UTC
Real-world risk
1.5/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.0
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from redhat)
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).
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
| Red Hat OpenShift Container PlatformWidespread | not stated | — |
| Red Hat Discovery 1Niche | not stated | — |
| Red Hat Hardened ImagesNiche | not stated | — |
| Red Hat Update Infrastructure 5Niche | not stated | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
- Reference tagged as exploit (link)
EPSS 0.3% chance of exploitation in 30 days (percentile 22), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.158
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.1575 × threat 0.951.496
- Rounded to one decimal between 0.1 and 101.5
Exploitation and evidence timeline
- 24 Aug 2026 Published
- 2 Dec 2026 CISA SSVC: proof of concept first seen
- 2 Dec 2026 Reference tagged as exploit first seen
- 2 Dec 2026 Risk 1.5 (cvss fallback)
Weakness
CWE-94
References
- https://access.redhat.com/errata/RHSA-2026:100637redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:100638redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:100643redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:102947redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:104703redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:104704redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:104705redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:104803redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:106338redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:106339redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:106340redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:106406redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:82378redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:99593redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:99595redhat, vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-78367redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2521857issue-tracking, redhat
- https://github.com/rpm-software-management/rpm/issues/4314exploit
- CVE-2026-78367 on CVE.org