Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
cve-program · CVE-2026-78367
PublishedA 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).
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-78367 · CVE overview and exploitation status
cve-program · CVE-2026-78367
- https://access.redhat.com/errata/RHSA-2026:82378
- https://access.redhat.com/errata/RHSA-2026:99593
- https://access.redhat.com/errata/RHSA-2026:99595
- https://access.redhat.com/security/cve/CVE-2026-78367
- https://bugzilla.redhat.com/show_bug.cgi?id=2521857
- https://github.com/rpm-software-management/rpm/issues/4314
Related changes
Linked by CVE identifier- Rpm: rpmbuild gettarspec() crafted tar member name → macro injection · Affected-version evidence changed · 12 Nov 2026
- Rpm: rpmbuild gettarspec() crafted tar member name → macro injection · Affected-version evidence changed · 12 Nov 2026
- Rpm: rpmbuild gettarspec() crafted tar member name → macro injection · Affected-version evidence changed · 6 Nov 2026
- Rpm: rpmbuild gettarspec() crafted tar member name → macro injection · Affected-version evidence changed · 6 Nov 2026