Red Hat
Rpm: command injection in `rpmbuild -t*` (`gettarspec`) via unescaped tarball path
A flaw was found in rpm. An attacker can exploit a command injection vulnerability by influencing the path or filename of a tarball processed by `rpmbuild -t*` to include shell metacharacters. This is particularly relevant in automated build or continuous integration (CI) workflows that ingest externally supplied artifact names. Successful exploitation allows for arbitrary command execution with the privileges of the build user, which could lead to information disclosure or disruption of the build environment.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:4.19.1.1-29.el10_3
Fixed in 0:4.19.1.1-23.el10_2.3
Fixed in 0:4.14.3-34.el8_10
Fixed in 0:4.14.3-34.el8_10
Fixed in 0:4.16.1.3-43.el9_9
Fixed in 0:4.16.1.3-43.el9_9
Fixed in 0:4.16.1.3-40.el9_8.3
Fixed in 6.1.0-1.3.hum1
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:4.19.1.1-29.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 0:4.19.1.1-23.el10_2.3 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:4.14.3-34.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:4.14.3-34.el8_10 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:4.16.1.3-43.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:4.16.1.3-43.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 0:4.16.1.3-40.el9_8.3 or later.
Upgrade Red Hat Hardened Images to 6.1.0-1.3.hum1 or later.
Workaround
To mitigate this issue, avoid using `rpmbuild -t*` with tarballs whose paths or filenames can be influenced by untrusted input. In automated build pipelines, ensure tarballs are staged into a trusted local directory and their names are normalized or validated to reject shell metacharacters before `rpmbuild` is invoked.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:100637
- Vendor advisory access.redhat.com/errata/RHSA-2026:100638
- Vendor advisory access.redhat.com/errata/RHSA-2026:100643
3 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:82378
- Vendor advisory access.redhat.com/errata/RHSA-2026:99593
- Vendor advisory access.redhat.com/errata/RHSA-2026:99595
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.