Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
Historical advisory recorded 6 Nov 2026 08:36:20 UTC. Read the latest advisory.
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
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.