Skip to main content

rpmbuild CVE-2026-78367

| EUVDEUVD-2026-64885 HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-08-24 redhat GHSA-pghw-ch4m-h3f9
7.0
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar archive with malicious member name
  2. Delivery
    Distribute tarball to target developer or pipeline
  3. Exploit
    Victim invokes rpmbuild in tarball mode
  4. Execution
    Malicious tar member name passes through RPM macro evaluator
  5. Persist
    Injected macro executes attacker-controlled command
  6. Impact
    Arbitrary code execution as build user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires that the victim invoke rpmbuild explicitly in tarball mode (using the appropriate rpmbuild flag that triggers tarball-based builds) against a tarball supplied or influenced by the attacker. The victim must be operating on an affected Red Hat-family system (RHEL 6-10, Hardened Images, or OpenShift CP 4). The attacker does not need any account or network access to the victim system but must successfully deliver a malicious tarball and convince the user or an automated pipeline to process it with rpmbuild. Exploitation is limited by: (1) UI:R - user must actively initiate the build; (2) AC:H - the macro injection payload must be precisely crafted to survive tar member name parsing; (3) AV:L - the tarball must reach and be processed on the local system. The attack does not target default system configurations passively; tarball-mode builds are explicitly user-initiated.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H produces a score of 7.0, correctly reflecting the full CIA triad impact offset by local attack vector and high complexity. The AV:L designation is appropriate because the malicious tarball must be processed locally by rpmbuild - the attacker's remote nature is captured through the social engineering channel (UI:R), not a network vector. AC:H reflects that successfully injecting a macro through a tar member name requires precise crafting. No EPSS score was provided in the input, so exploitation probability cannot be quantified numerically. There is no CISA KEV listing and no publicly known POC - exploitation remains theoretical. Real-world risk is primarily elevated in CI/CD pipelines, package maintainer workflows, or developer environments where untrusted tarballs may be built. The impact is significant if exploitation succeeds (full local RCE as the build user), but the combination of required user interaction and high attack complexity meaningfully constrains opportunistic exploitation.

Exploit ScenarioDerived

A threat actor publishes or submits a malicious source tarball - for example, as a contribution to an open-source project or as a typosquatted upstream release - containing a tar member whose name embeds RPM macro syntax. A developer or automated CI job downloads this tarball and invokes rpmbuild in tarball mode, causing rpmbuild to expand the malicious macro and execute attacker-controlled commands with the privileges of the build user. No public POC has been identified, but the attack path is mechanically straightforward once the injection gadget within the tar member name is identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 24, 2026

Macro injection in rpmbuild's tarball mode allows arbitrary code execution on systems running Red Hat Enterprise Linux 6 through 10, Red Hat Hardened Images, and OpenShift Container Platform 4. When rpmbuild processes a tarball in tarball mode, specially crafted tar member names are interpreted as RPM macros, enabling an attacker who can distribute a malicious tarball to achieve full RCE in the context of the user running the build. No public exploit or active exploitation has been identified at time of analysis, but the social-engineering requirement is realistic in open-source build pipeline contexts where developers routinely fetch and build third-party source tarballs.

RemediationAI

No vendor-released patch version has been independently confirmed from available data. The issue is tracked upstream at https://github.com/rpm-software-management/rpm/issues/4314 and via Red Hat Bugzilla #2521857 at https://bugzilla.redhat.com/show_bug.cgi?id=2521857; monitor https://access.redhat.com/security/cve/CVE-2026-78367 for official errata. As a compensating control until a patch is issued, avoid running rpmbuild in tarball mode against tarballs from untrusted or unverified sources; require GPG signature verification of all source tarballs before ingestion into build pipelines. In CI/CD environments, restrict which users and roles can initiate builds and enforce an allowlist of known-good tarball origins. Running rpmbuild inside an isolated container or VM limits the blast radius of successful exploitation to that environment rather than the host system, but does not prevent code execution within the container.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rpmbuild is the core build tool of the RPM Package Manager ecosystem, used across Red Hat Enterprise Linux (versions 6-10), Red Hat Hardened Images, and OpenShift Container Platform 4 (CPE strings confirm all these product lines). The vulnerability is rooted in CWE-74 (Injection), specifically macro injection: RPM uses a powerful macro expansion language that is evaluated during spec file and source processing. When rpmbuild operates in tarball mode - a mode that derives build parameters directly from a tarball without a separately supplied spec file - it processes tar member names (file paths within the archive) in a way that passes them through RPM's macro evaluator without sufficient sanitization. A tar archive is essentially an ordered collection of named entries, and a crafted name containing RPM macro syntax (e.g., constructs using '%' directives) is expanded and executed rather than treated as a literal path string.

Know when Red Hat Enterprise Linux 10 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 7.0 HIGH
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

AV:L because processing occurs locally; AC:H for precise macro crafting; PR:N as attacker needs no system privileges; UI:R for mandatory victim-initiated build action.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 7.0 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.

Executive ViewAI

Why It Matters

Organizations running RHEL 6-10, Red Hat Hardened Images, or OpenShift Container Platform 4 face supply-chain compromise risk through a macro injection vulnerability in rpmbuild (CVE-2026-78367, CVSS 7.0). Developers building open-source software could unknowingly execute malicious code embedded in third-party tarballs, compromising build systems and potentially affecting all downstream software deployments. No public exploit has been identified at time of analysis, but the social-engineering attack vector is realistic-the absence of a vendor patch requires immediate operational controls.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict tarball sources exclusively to cryptographically-verified, trusted repositories; (2) Mandate GPG signature verification before any tarball extraction; (3) Isolate build systems on restricted network segments with egress filtering; (4) Require manual security review of tarball contents before automated processing; (5) Enable comprehensive audit logging for tarball operations and macro expansion; (6) Implement file integrity monitoring on build system binaries to detect unauthorized changes.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
core build tool across all RHEL and RPM-based enterprise Linux deployments
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_6:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_hardened_images:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_openshift_container_platform_4:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_openshift_container_platform_4:*:*:*:*:*:*:*:*
CVE-2026-18663 MEDIUM
5.9 Aug 12

Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-4480 CRITICAL POC
9.0 May 26

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft

CVE-2026-101258 HIGH POC
7.8 Oct 06

Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript

CVE-2026-18922 CRITICAL
9.8 Sep 07

Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo

CVE-2026-14544 CRITICAL
9.8 Jul 03

Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter

CVE-2026-76578 CRITICAL
9.8 Sep 07

Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a

CVE-2026-102560 CRITICAL
9.8 Sep 29

A heap buffer overflow exists in libsoup's WebSocket permessage-deflate compression path: when a very large outbound mes

CVE-2026-5121 HIGH
7.5 Mar 30

Remote code execution in libarchive on 32-bit systems allows unauthenticated attackers to execute arbitrary code via spe

CVE-2026-107935 CRITICAL
9.3 Oct 09

Unauthenticated path traversal in gvproxy, the network forwarder shipped in the gvisor-tap-vsock package (used by Podman

CVE-2026-28369 CRITICAL
9.1 Mar 27

HTTP request smuggling in Undertow (the embedded web server underpinning JBoss EAP, Red Hat Data Grid, and Apache Camel

CVE-2026-28368 CRITICAL
9.1 Mar 27

HTTP request smuggling in Red Hat Undertow allows remote unauthenticated attackers to bypass front-end security controls

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.4 Not-Affected
SUSE Linux Enterprise Micro 5.5 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy