Description
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).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Hardened Images | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat OpenShift AI (RHOAI) | — | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rpm | No fix yet | — |
| Debian 13 | rpm | No fix yet | — |
| Debian 12 | rpm | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rpm | No fix yet | — |
| Ubuntu 26.04 LTS | rpm | No fix yet | — |
| Ubuntu 24.04 LTS | rpm | No fix yet | — |
| Ubuntu 22.04 LTS | rpm | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | rpm | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rpm | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rpm | No fix yet | — |
| Ubuntu Pro 14.04 LTS | rpm | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | rpm +19 | 6.1.0-1.3.hum1 | RHSA-2026:82378 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | rpm +16 | 4.16.1.3-29.amzn2023.0.8 | ALAS2023-2026-3125 |
| Amazon Linux 2 | rpm +10 | 4.11.3-48.amzn2.0.6 | ALAS2-2026-3984 |
Advisories 4
- WID-SEC-2026-2980 RPM: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit Benutzerrechten BSI CERT-Bund (WID) · Nov 9, 2026
- RHSA-2026:82378 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- ALAS2-2026-3984 Important: rpm security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- ALAS2023-2026-3125 Important: rpm security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 28, 2026
References
- RHSA-2026:82378 vendor-advisory
- RHSA-2026:99593 vendor-advisory
- RHSA-2026:99595 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-78367 vdb-entry
- RHBZ#2521857 issue-tracking
- https://github.com/rpm-software-management/rpm/issues/4314