CVE Database›Document archive›CVE-2026-95519

CVE-2026-95519

rpm: Code Execution via Macro Expansion of Manifest Entries in `rpmgi` (`-q -p` / verify manifest flows)

Loading…

Severity

Moderate

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · September 24, 2026

Updated · November 3, 2026

Description

A flaw was found in rpm. An attacker can supply a crafted manifest file that, when processed by a user or automation using rpm -q -p or similar manifest-processing flows, leads to arbitrary code execution. This occurs because manifest entries are unexpectedly macro-expanded before being opened, allowing embedded shell commands to run with the privileges of the rpm process. Successful exploitation can lead to a full compromise of confidentiality, integrity, and availability for the affected account.

Statement

This issue is rated Moderate because, although successful exploitation allows arbitrary command execution with the privileges of the invoking rpm process, it requires a user or automated workflow to run rpm -q -p (or a similar manifest-processing query/verify flow) directly against an attacker-supplied file. The vulnerable code is not exposed as a network service, and the operational mitigation --nomanifest fully suppresses the manifest fallback that triggers it.

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 querying untrusted files with rpm. When handling untrusted inputs, use the --nomanifest option to prevent macro expansion. For automation requiring manifest support, pre-validate entries to ensure only literal paths or globs are accepted and macro syntax is rejected.

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