CVE-2026-84837

Rpm: command injection in `rpmbuild -t*` (`gettarspec`) via unescaped tarball path

Published Sep 2, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw in rpm allows attackers to inject commands by tampering with the path or filename of a tarball that rpmbuild processes during its -t* mode. If an attacker supplies a tarball whose name or path contains shell metacharacters, rpmbuild will execute those characters as part of the build process, granting the attacker arbitrary code execution with the privileges of the user running the build. This can result in information disclosure, tampering with build artifacts, or disruption of automated build pipelines.

Affected Systems

Affected systems include Red Hat Enterprise Linux versions 6, 7, 8, 9, and 10, the Red Hat Hardened Images project, and the Red Hat Hummingbird release 1. The vulnerability stems from the rpm package bundled with these distributions, which is relied upon for building packages in many build environments.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity level. The EPSS score of 1% suggests a low but nonzero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating no confirmed exploits in the wild. Nevertheless, the attacker can craft a specially named tarball and invoke rpmbuild -t* within an automated build or continuous integration workflow, thereby satisfying the conditions for successful exploitation and achieving arbitrary command execution.

Remediation

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


OpenCVE Recommended Actions

  • Install any vendor-released patch for the rpm package or upgrade to the latest supported version of the operating system.
  • Avoid using rpmbuild -t* with tarballs whose path or filename can be influenced by untrusted input in automated build pipelines.
  • Ensure tarballs are staged into a trusted local directory and normalize or validate their names to reject shell metacharacters before invoking rpmbuild.

Generated by OpenCVE AI on September 3, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhui
CPEs cpe:/a:redhat:rhui:5::el9
Vendors & Products Redhat rhui
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
Redhat rhel Eus
CPEs cpe:/a:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:rhel_eus:9.8::appstream
cpe:/o:redhat:enterprise_linux:8::baseos
cpe:/o:redhat:enterprise_linux_eus:10.2
cpe:/o:redhat:rhel_eus:9.8::baseos
Vendors & Products Redhat enterprise Linux Eus
Redhat rhel Eus
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.3
References
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai
Vendors & Products Redhat openshift Ai
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Redhat hardened Images
Vendors & Products Redhat hardened Images
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Rpm: command injection in `rpmbuild -t*` (`gettarspec`) via unescaped tarball path
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-78
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 25, 2026, 2:49 AM
Reserved
Sep 2, 2026, 11:56 AM
Status
Awaiting Analysis
Published
Sep 2, 2026, 4:17 PM
Modified
Nov 25, 2026, 3:17 AM
Severity
Moderate
Public date
Sep 2, 2026, 1:38 PM