Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-78367

Опубликовано: 24 авг. 2026
Источник: redhat
CVSS3: 7

Описание

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

Отчет

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.

Меры по смягчению последствий

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.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
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 Hardened ImagesrpmAffected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Under investigation
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Under investigation

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-94
https://bugzilla.redhat.com/show_bug.cgi?id=2521857rpm: rpmbuild getTarSpec() crafted tar member name → macro injection

7 High

CVSS3

Связанные уязвимости

CVSS3: 7
ubuntu
22 дня назад

(A vulnerability was found in RPM's rpmbuild tarball processing. When p ...)

CVSS3: 7
nvd
24 дня назад

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

CVSS3: 7
debian
24 дня назад

A vulnerability was found in RPM's rpmbuild tarball processing. When p ...

CVSS3: 7
github
24 дня назад

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.

CVSS3: 7
fstec
25 дней назад

Уязвимость функции getTarSpec() компонента tools/rpmbuild.cc менеджера RPM-пакетов RPM, позволяющая нарушителю выполнить произвольный код

7 High

CVSS3