Skip to main content
EPSS 0.2%top 91%

CVE-2026-78367: Improper Control of Generation of Code ('Code Injection') in Red Hat Red Hat Enterprise Linux 10

0
High
VulnerabilityCVE-2026-78367cvecve-2026-78367gcvecwe-94
Published: 08/24/2026 (08/24/2026, 13:48:52 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Enterprise Linux 10

Description

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

CVSS v3.1

Score 7.0high

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 7

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Hardened Images

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 12:30:29 UTC

Technical Analysis

The vulnerability exists in RPM's rpmbuild tarball processing, specifically in the getTarSpec() function in tools/rpmbuild.cc. This function passes an attacker-controlled tar archive member name to rpmExpand() as part of a %{basename:...} macro expression. A specially crafted .spec member name can inject RPM macros, including Lua expressions, resulting in arbitrary code execution with the privileges of the rpmbuild process. Exploitation requires an attacker to supply a crafted source tarball and have it processed by rpmbuild in tarball mode (such as -ts, -ta, or -tb). The vulnerable code is not exposed remotely and cannot be triggered without this specific archive-processing workflow.

Potential Impact

Successful exploitation allows arbitrary code execution with the privileges of the user running rpmbuild, potentially compromising system integrity, confidentiality, and availability. However, exploitation requires local or automated build system processing of a malicious source tarball in tarball mode, limiting the attack vector. The vulnerability does not expose a network service and requires user interaction to trigger.

Mitigation Recommendations

Red Hat advises not to process untrusted tarballs with rpmbuild in tarball mode (-ta, -tb, -ts). Instead, extract and inspect archives first, rejecting member names containing }, %, or {. Alternatively, build from a reviewed .spec file outside tarball mode. Use isolated build environments such as mock or containers for untrusted packaging work. No official patch or fix status is provided yet; check the Red Hat advisory for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-08-24T12:52:02.839Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-78367","vendor":"Red Hat"}]

Threat ID: 6a8c504bacd9273b49a22816

Added to database: 08/24/2026, 14:08:11 UTC

Last enriched: 09/07/2026, 12:30:29 UTC

Last updated: 10/08/2026, 06:48:19 UTC

Views: 73

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses