CVE-2026-95519

Rpm: code execution via macro expansion of manifest entries in `rpmgi` (`-q -p` / verify manifest flows)

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

Analysis

AI-generated

Technical impact

The vulnerability originates in the RPM packaging tool where manifest file entries are macro‑expanded before being accessed. A maliciously crafted manifest containing shell commands can therefore be executed with the privileges of the rpm process, giving the attacker full control of the affected account. This flaw results in a complete compromise of confidentiality, integrity, and availability for the system.

Affected Systems

Red Hat Enterprise Linux releases 6, 7, 8, 9, and 10 as well as Red Hat Hardened Images are affected. Additionally, the Hummingbird container images may be impacted through the use of rpm within those environments.

Risk and Exploitability

The CVSS score of 7.8 classifies the flaw as high severity, and while the EPSS score is not available, the lack of a KEV listing suggests limited active exploitation so far. The attack vector is inferred to be local or semi‑local, as the flaw is triggered when a user or automation process runs rpm with a crafted manifest; however, the underlying mechanism could be leveraged by remote code execution triggers in automation workflows that process untrusted input.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Use the `--nomanifest` option whenever rpm is invoked against files that may contain untrusted manifest data to suppress macro expansion.
  • Ensure that any manifests used by automated packaging or deployment processes are pre‑validated so that only literal file paths or globs are present and any macro syntax is rejected before rpm processes them.
  • Monitor Red Hat’s security announcements and install the latest RHEL errata; future patches may remove the need for workarounds.

Generated by OpenCVE AI on September 25, 2026 at 01:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Rpm
Rpm rpm
Vendors & Products Redhat hardened Images
Rpm
Rpm rpm
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 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.
Title Rpm: code execution via macro expansion of manifest entries in `rpmgi` (`-q -p` / verify manifest flows)
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 6, 2026, 7:38 AM
Reserved
Sep 22, 2026, 8:44 AM
Status
Awaiting Analysis
Published
Sep 24, 2026, 2:18 PM
Modified
Nov 6, 2026, 8:17 AM
Severity
Moderate
Public date
Sep 24, 2026, 12:35 PM