CVE-2026-78367

HIGH CVSS 3.1: 7.0 EPSS 0.26%
Updated Nov 25, 2026
Red Hat
Parameter Value
CVSS 7.0 (HIGH)
Type CWE-74 (Injection), CWE-94 (Code Injection)
Vendor Red Hat
Public PoC No

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

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products

red hat:red hat enterprise linux 10.2 extended update support red hat:red hat enterprise linux 8 red hat:red hat enterprise linux 9.8 extended update support red hat:red hat openshift ai (rhoai) red hat:red hat enterprise linux 9 red hat:red hat hardened images red hat:red hat enterprise linux 7 red hat:red hat enterprise linux 6 red hat:red hat enterprise linux 10