Описание
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 10 | rpm | Affected | ||
| Red Hat Enterprise Linux 6 | rpm | Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm | Affected | ||
| Red Hat Enterprise Linux 8 | rpm | Affected | ||
| Red Hat Enterprise Linux 9 | rpm | Affected | ||
| Red Hat Hardened Images | rpm | Affected | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Under investigation | ||
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Under investigation |
Показывать по
Дополнительная информация
Статус:
7 High
CVSS3
Связанные уязвимости
(A vulnerability was found in RPM's rpmbuild tarball processing. When p ...)
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).
A vulnerability was found in RPM's rpmbuild tarball processing. When p ...
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.
Уязвимость функции getTarSpec() компонента tools/rpmbuild.cc менеджера RPM-пакетов RPM, позволяющая нарушителю выполнить произвольный код
7 High
CVSS3