Skip to main content
← All vulnerabilities
CVE-2026-78367

Rpm: rpmbuild gettarspec() crafted tar member name → macro injection

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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).

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • rpm-main

    Version range not reported

  • rpm

    Version range not reported

  • rpm

    Version range not reported

  • rpm

    Version range not reported

  • rpm

    Version range not reported

  • rpm

    Version range not reported

References 4

access.redhat.com

bugzilla.redhat.com

GitHub · rpm-software-management/rpm