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

- Severity: High 7.0 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-24T13:48:52.103Z
- Modified: 2026-12-02T00:18:21.300Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- rpm: no versions given (not affected: from 0:4.19.1.1-29.el10_3 before *; from 0:4.19.1.1-23.el10_2.3 before *; from 0:4.11.3-48.el7_9.2 before *; from 0:4.14.3-34.el8_10 before *; from 0:4.14.3-14.el8_4.5 before *; from 0:4.14.3-26.el8_6.2 before *; from 0:4.14.3-28.el8_8.2 before *; from 0:4.16.1.3-43.el9_9 before *; from 0:4.16.1.3-24.el9_2.3 before *; from 0:4.16.1.3-29.el9_4.2 before *; from 0:4.16.1.3-37.el9_6.2 before *; from 0:4.16.1.3-40.el9_8.3 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 1795537005 before *)
- discovery/discovery-ui-rhel9: no versions given (not affected: from 1795539844 before *)
- rpm-main: no versions given (not affected: from 6.1.0-1.3.hum1 before *)
- rhui5/cds-kubernetes-rhel9: no versions given (not affected: from 1795506874 before *)
- rhui5/cds-rhel9: no versions given (not affected: from 1795506877 before *)
- rhui5/haproxy-rhel9: no versions given (not affected: from 1795454666 before *)
- rhui5/installer-rhel9: no versions given (not affected: from 1795506876 before *)
- rhui5/rhua-rhel9: no versions given (not affected: from 1795506954 before *)
- rhoai/odh-ai-gateway-operator-rhel9: no versions given
- rhoai/odh-core-bff-rhel9: no versions given
- rhoai/odh-dashboard-operator-rhel9: no versions given
- rhoai/odh-dashboard-rhel9: no versions given
- rhoai/odh-data-science-pipelines-operator-controller-rhel9: no versions given
- rhoai/odh-kf-notebook-controller-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-llmisvc-controller-rhel9: no versions given
- rhoai/odh-kserve-module-operator-rhel9: no versions given
- rhoai/odh-kuberay-operator-controller-rhel9: no versions given
- rhoai/odh-kube-rbac-proxy-rhel9: no versions given
- rhoai/odh-llama-stack-k8s-operator-rhel9: no versions given
- rhoai/odh-maas-controller-rhel9: no versions given
- rhoai/odh-mlflow-operator-rhel9: no versions given
- rhoai/odh-mlflow-rhel9: no versions given
- rhoai/odh-mod-arch-agent-ops-rhel9: no versions given
- rhoai/odh-mod-arch-automl-rhel9: no versions given
- rhoai/odh-mod-arch-autorag-rhel9: no versions given
- rhoai/odh-mod-arch-eval-hub-rhel9: no versions given
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given
- rhoai/odh-mod-arch-maas-rhel9: no versions given
- rhoai/odh-mod-arch-mlflow-rhel9: no versions given
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given
- rhoai/odh-model-controller-rhel9: no versions given
- rhoai/odh-model-registry-operator-rhel9: no versions given
- rhoai/odh-model-serving-api-rhel9: no versions given
- rhoai/odh-notebook-controller-rhel9: no versions given
- rhoai/odh-ogx-k8s-operator-rhel9: no versions given
- rhoai/odh-ogx-module-operator-rhel9: no versions given
- rhoai/odh-training-operator-rhel9: no versions given
- rhoai/odh-trustyai-service-operator-rhel9: no versions given
- rhoai/odh-workbenches-operator-rhel9: no versions given

## References

- <https://github.com/rpm-software-management/rpm/issues/4314> (exploit)
- <https://access.redhat.com/errata/RHSA-2026:100637> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:100638> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:100643> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:102947> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:104703> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:104704> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:104705> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:104803> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:106338> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:106339> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:106340> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:106406> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:82378> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99593> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99595> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-78367> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2521857> (issue-tracking)

## Sources

- CVE List: [CVE-2026-78367](https://www.cve.org/CVERecord?id=CVE-2026-78367), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-78367](https://nvd.nist.gov/vuln/detail/CVE-2026-78367), Public domain, modified 2026-12-02

---

Page: https://cve.day/CVE-2026-78367 · Whole record: https://cve.day/CVE-2026-78367.json · Rebuilt by cve.day 2026-12-02T00:32:32.486Z
