{"id":"CVE-2026-78367","aliases":["CVE-2026-78367"],"related":[],"kind":"vulnerability","state":"published","title":"Rpm: rpmbuild gettarspec() crafted tar member name → macro injection","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"es","text":"Se encontró una vulnerabilidad en el procesamiento de tarballs de rpmbuild de RPM. Al procesar un archivo fuente manipulado, la función getTarSpec() en tools/rpmbuild.cc pasa un nombre de miembro de archivo tar controlado por el atacante a rpmExpy() como parte de una expresión de macro %{basename:...}. Un nombre de miembro .spec especialmente manipulado puede, por lo tanto, inyectar macros de RPM, incluyendo expresiones Lua, resultando en ejecución de código arbitrario con los privilegios del usuario que ejecuta rpmbuild. Esto puede ser explotado cuando una víctima o un sistema de compilación automatizado procesa un tarball fuente controlado por el atacante usando el modo tarball de rpmbuild (como -ts, -ta o -tb).","source":"nvd"}],"published":"2026-08-24T13:48:52.103Z","modified":"2026-12-02T00:18:21.300Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:4.19.1.1-29.el10_3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"rpm","cpe":"cpe:/o:redhat:enterprise_linux:10.3","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.19.1.1-23.el10_2.3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10.2 Extended Update Support","package":"rpm","cpe":"cpe:/o:redhat:enterprise_linux_eus:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.11.3-48.el7_9.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7 Extended Lifecycle Support","package":"rpm","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-34.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"rpm","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-34.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"rpm","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-14.el8_4.5","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","package":"rpm","cpe":"cpe:/a:redhat:rhel_aus:8.4::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-14.el8_4.5","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","package":"rpm","cpe":"cpe:/a:redhat:rhel_aus:8.4::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-26.el8_6.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","package":"rpm","cpe":"cpe:/a:redhat:rhel_aus:8.6::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-26.el8_6.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On","package":"rpm","cpe":"cpe:/a:redhat:rhel_aus:8.6::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-28.el8_8.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.8 Telecommunications Update Service","package":"rpm","cpe":"cpe:/a:redhat:rhel_e4s:8.8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.14.3-28.el8_8.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","package":"rpm","cpe":"cpe:/a:redhat:rhel_e4s:8.8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-43.el9_9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"rpm","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-43.el9_9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"rpm","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-24.el9_2.3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","package":"rpm","cpe":"cpe:/a:redhat:rhel_e4s:9.2::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-29.el9_4.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions","package":"rpm","cpe":"cpe:/a:redhat:rhel_e4s:9.4::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-37.el9_6.2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.6 Extended Update Support","package":"rpm","cpe":"cpe:/a:redhat:rhel_eus:9.6::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.1.3-40.el9_8.3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.8 Extended Update Support","package":"rpm","cpe":"cpe:/a:redhat:rhel_eus:9.8::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795537005","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Discovery 2","package":"discovery/discovery-server-rhel9","cpe":"cpe:/a:redhat:discovery:2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795539844","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Discovery 2","package":"discovery/discovery-ui-rhel9","cpe":"cpe:/a:redhat:discovery:2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"6.1.0-1.3.hum1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"rpm-main","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795506874","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Update Infrastructure 5","package":"rhui5/cds-kubernetes-rhel9","cpe":"cpe:/a:redhat:rhui:5::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795506877","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Update Infrastructure 5","package":"rhui5/cds-rhel9","cpe":"cpe:/a:redhat:rhui:5::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795454666","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Update Infrastructure 5","package":"rhui5/haproxy-rhel9","cpe":"cpe:/a:redhat:rhui:5::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795506876","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Update Infrastructure 5","package":"rhui5/installer-rhel9","cpe":"cpe:/a:redhat:rhui:5::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1795506954","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Update Infrastructure 5","package":"rhui5/rhua-rhel9","cpe":"cpe:/a:redhat:rhui:5::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"rpm","cpe":"cpe:/o:redhat:rhel_els:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-ai-gateway-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-core-bff-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-dashboard-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-dashboard-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-data-science-pipelines-operator-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kf-notebook-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-llmisvc-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-module-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kuberay-operator-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kube-rbac-proxy-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-llama-stack-k8s-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-maas-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mlflow-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mlflow-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-agent-ops-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-automl-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-autorag-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-eval-hub-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-gen-ai-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-maas-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-mlflow-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-model-registry-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-model-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-model-registry-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-model-serving-api-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-notebook-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-ogx-k8s-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-ogx-module-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-training-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-trustyai-service-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-workbenches-operator-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:100637","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:100638","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:100643","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:102947","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:104703","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:104704","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:104705","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:104803","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:106338","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:106339","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:106340","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:106406","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:82378","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99593","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99595","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-78367","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521857","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rpm-software-management/rpm/issues/4314","tags":["exploit"],"sources":["cvelist","nvd"]}],"credits":["This issue was discovered by Sandipan Roy (Red Hat)."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-24T15:13:40.183Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78367","url":"https://www.cve.org/CVERecord?id=CVE-2026-78367","licence":"CVE Terms of Use","modified":"2026-12-01T23:43:01.387Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78367","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78367","licence":"Public domain","modified":"2026-12-02T00:18:21.300Z"}],"updatedAt":"2026-12-02T00:32:32.486Z","epss":{"score":0.00277,"percentile":0.21615,"date":"2026-12-01T12:00:22.000Z"}}