CVE-2026-78367
Received Received - Intake

rpmbuild Macro Injection via Crafted Tarball

Vulnerability report for CVE-2026-78367, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-24

Last updated on: 2026-08-24

Assigner: redhat-SADP

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-24
Last Modified
2026-08-24
Generated
2026-08-24
AI Q&A
2026-08-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 7 associated CPEs
Vendor Product Version / Range
redhat rpmbuild *
redhat rpmbuild From 4.16.1 (inc)
redhat rpmbuild From 6.0.2 (inc)
redhat rpmbuild 7
redhat rpmbuild 8
redhat rpmbuild 9
redhat rpmbuild 10

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in rpmbuild, the RPM package manager's tool. When rpmbuild processes a tarball in modes like -ta or -ts, it extracts a .spec file and renames it using the tar member name. A crafted member name with a closing brace can terminate a macro prematurely, allowing injected Lua code to execute arbitrary commands during the build process.

Detection Guidance

To detect this vulnerability, inspect tarballs processed by rpmbuild for malicious .spec member names containing closing braces (}). Check rpmbuild logs for unexpected macro or Lua execution during -ta, -tb, or -ts operations. Monitor for arbitrary file creation or command execution by rpmbuild users.

Impact Analysis

An attacker can trick a user into running rpmbuild on a malicious tarball, leading to arbitrary code execution on the system. This could allow the attacker to take control of the system, install malware, or steal data. The attack requires user interaction and local access.

Compliance Impact

This vulnerability could lead to unauthorized access, data breaches, or system compromise, violating compliance requirements for GDPR, HIPAA, and other regulations. Organizations using rpmbuild may face legal and financial penalties due to potential data exposure or loss of integrity.

Mitigation Strategies

Immediately update rpm to a patched version if available. Avoid running rpmbuild -ta, -tb, or -ts on untrusted tarballs. Restrict rpmbuild execution to trusted users and environments. Monitor for suspicious activity in rpmbuild processes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78367. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart