Red Hat
Rpm: command injection in rpmuncompress via unescaped filenames passed to popen()
A flaw was found in rpmuncompress. This command injection vulnerability allows a local attacker to execute arbitrary commands. This occurs when rpmuncompress processes a specially crafted archive filename containing shell metacharacters, which are not properly escaped before being passed to shell command strings. Successful exploitation requires user interaction, where a user or automated workflow invokes rpmuncompress on the malicious file, leading to high impact on the confidentiality, integrity, and availability of data accessible to the invoking user.
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 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 Hardened Images to 6.1.0-1.3.hum1 or later.
Workaround
To mitigate this issue, avoid processing untrusted archive filenames with `rpmuncompress` or any workflows that invoke `%{__rpmuncompress}`. Before any build or extraction steps, rename source and patch archives to remove any shell metacharacters from their filenames.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:100638
- Vendor advisory access.redhat.com/errata/RHSA-2026:82378
- 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.