CVE Database›Document archive›CVE-2026-84838

CVE-2026-84838

rpm: Command injection in rpmuncompress via unescaped filenames passed to popen()

Loading…

Severity

Moderate

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · September 2, 2026

Updated · November 3, 2026

Description

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.

Statement

This issue is considered Moderate severity because, although successful exploitation allows arbitrary command execution with the privileges of the user running rpmuncompress (or a build workflow that invokes it via %{__rpmuncompress}), exploitation requires a specially crafted local archive filename to be processed by that tool. The vulnerable code is not exposed as a network service and cannot be triggered remotely without a user or automated workflow invoking rpmuncompress on the attacker-controlled filename.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

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.

CVSS / CWE

CVSS 3.1 · 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CWE-78 · Improper Neutralization of Special Elements used in an OS Command