cve.bz

CVE-2026-78367 Rpm: rpmbuild gettarspec() crafted tar member name → macro injection

7.0 highEPSS 0.2%Fix available

High (7.0) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-08-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:4.19.1.1-29.el10_3
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:4.16.1.3-43.el9_9
  • Red Hat Red Hat Hardened Images: fixed in 6.1.0-1.3.hum1
  • Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-78367 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-78367?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-78367?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-78367 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • 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
  • red hat:red hat openshift ai (rhoai)

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:4.19.1.1-29.el10_3
Red Hat Enterprise Linux 90:4.16.1.3-43.el9_9
Red Hat Hardened Images6.1.0-1.3.hum1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpmno fix listedDEBIAN-CVE-2026-78367
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 morerpmno fix listedUBUNTU-CVE-2026-78367
Red Hatenterprise_linux:9::appstreamrpm-cron, rpm-build, rpm-devel and 21 more0:4.16.1.3-43.el9_9RHSA-2026:99593
Red Hatenterprise_linux:9::baseosrpm, rpm-libs, rpm-sign and 21 more0:4.16.1.3-43.el9_9RHSA-2026:99593
Red Hatenterprise_linux:10.3rpm, rpm-cron, rpm-libs and 31 more0:4.19.1.1-29.el10_3RHSA-2026:99595
Red Hathummingbird:1rpm, rpm-cron, rpm-libs and 17 more0:6.1.0-1.3.hum1RHSA-2026:82378
AlmaLinux9rpm, rpm-cron, rpm-libs and 13 more4.16.1.3-43.el9_9ALSA-2026:99593
AlmaLinux10rpm, rpm-cron, rpm-libs and 14 more4.19.1.1-29.el10_3.alma.1ALSA-2026:99595
Rocky Linux9rpm, rpm-cron, rpm-libs and 28 more0:4.16.1.3-43.el9_9RLSA-2026:99593
Rocky Linux10rpm, rpm-cron, rpm-libs and 30 more0:4.19.1.1-29.el10_3RLSA-2026:99595

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is considered Moderate severity because, although successful exploitation can result in arbitrary code execution with the privileges of the rpmbuild process, exploitation requires an attacker to supply a specially crafted source tarball and have it processed by rpmbuild in tarball mode. The vulnerable code is not exposed as a network service and cannot be directly triggered remotely without this archive-processing workflow.

Red Hat's mitigation

Do not process untrusted tarballs with rpmbuild -ta/-tb/-ts. Extract and inspect archives first (reject member names containing }, %, or {), or build from a reviewed .spec outside tarball mode. Prefer isolated builders (mock/container) for any untrusted packaging related work.

ProductPackageStateAdvisory
Red Hat Hardened Imagesrpm-main-6.1.0-1.3.hum1Fixed 2026-10-13RHSA-2026:82378
Red Hat Enterprise Linux 10rpmAffected
Red Hat Enterprise Linux 6rpmOut of support scope
Red Hat Enterprise Linux 7rpmAffected
Red Hat Enterprise Linux 8rpmAffected
Red Hat Enterprise Linux 9rpmAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-core-bff-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-llmisvc-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-module-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kuberay-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kube-rbac-proxy-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-maas-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-operator-rhel9Not affected
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-78367.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON