Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
cve-program · CVE-2026-78367 · Published
No access to your tenant or devices. Every item links to its source. What this means
Historical advisory recorded 6 Nov 2026 08:36:20 UTC. Read the latest advisory.
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).
Read the publisher's advisorySee how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.
Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.
cve-program · CVE-2026-78367 · Published
cve-program · CVE-2026-78367 · Published
cve-program · CVE-2026-78367 · Published
cve-program · CVE-2026-78367 · Published
This historical link shows only this version and versions saved before it. Browse all advisory history.