Skip to content
Threat Feed
high advisory

Macro Injection Vulnerability in rpmbuild (CVE-2026-78367)

A macro injection vulnerability in rpmbuild allows remote attackers to achieve arbitrary code execution by convincing a user to process a specially crafted tarball.

CVE search metadata

CVE search record: CVE-2026-78367. Severity: high. CVSS: 7.0. KEV: no. Product: Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 10, Red Hat Hardened Images. Brief: Macro Injection Vulnerability in rpmbuild (CVE-2026-78367). Brief link: https://feed.craftedsignal.io/briefs/2026-08-rpmbuild-macro-injection/

CVE-2026-78367 is a macro injection vulnerability in rpmbuild, a utility commonly used within Red Hat Enterprise Linux (RHEL) environments to build RPM packages. When rpmbuild operates in tarball mode and processes a specially crafted tarball, an attacker can leverage malicious tar member names to trigger macro injection. Successful exploitation results in arbitrary code execution on the target system.

The attack requires user interaction, specifically convincing a user to perform an rpmbuild operation on a malicious archive. Given that rpmbuild is frequently used by developers, build engineers, and system administrators, the impact is highest in environments where external or untrusted source tarballs are processed during CI/CD or package maintenance workflows. The vulnerability is tracked as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

Impact

The vulnerability carries a CVSS 3.1 score of 7.0. If exploited, an attacker can gain the same level of access as the user running the rpmbuild command. This can lead to full system compromise, exfiltration of source code or environment credentials, and persistent backdooring of build environments. Targeted sectors include any organization relying on RHEL-based distributions for software development or infrastructure management.

Recommendation

Prioritize patching systems where rpmbuild is active in automated build pipelines.

  • Review and restrict the use of untrusted source tarballs in automated build environments.
  • Apply security patches provided by Red Hat for RHEL 7, 8, 9, and 10 as soon as they are made available via official channels.
  • Audit build logs for suspicious file names or macro characters within tarball member names.

Immediate actions

Deploy security updates for rpm package once released by Red Hat

IT Operations 72h

Mitigations

Isolate build environments processing untrusted tarballs

short_term Security Engineering

CVE-2026-78367