Description
A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.
Published: 2026-09-24
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Command Execution (non‑root user)
Action: Patch if available
AI Analysis

Impact

A command injection flaw was found in the rpm package. When installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro, rpm executes an attacker‑controlled shell command via popen() during source file relocation. This flaw allows an attacker to run arbitrary commands as the invoking user, which is typically a non‑root account, by simply processing an untrusted .src.rpm. The weakness is a file‑path based command injection (CWE‑78).

Affected Systems

The vulnerability affects Red Hat products including Red Hat Enterprise Linux 10, 6, 7, 8, and 9, as well as Red Hat Hardened Images. All affected systems that run the standard rpm implementation are potentially exposed if they process source RPMs from untrusted sources.

Risk and Exploitability

The CVSS score is 7.8 indicating high severity, while the EPSS score is not available, suggesting limited publicly observed exploitation data. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local: an attacker who can supply or place a malicious .src.rpm on the target system can trigger the command injection by having rpm process that file. If the attacker can retrieve the resulting output, they may gain further foothold or compromise the service. The exploit requires only the ability to run rpm on the target system and does not demand elevated privileges prior to execution.

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

Remediation

Vendor Workaround

To mitigate this issue, Red Hat recommends avoiding the installing or rebuilding of source RPMs from untrusted or unverified sources.


OpenCVE Recommended Actions

  • Avoid installing or rebuilding source RPMs from untrusted or unverified sources as recommended by Red Hat.
  • When a vendor patch or updated rpm package is released, upgrade to the fixed version as soon as possible.
  • Restrict ordinary users from processing arbitrary SRC.rpm files by enforcing strict file permissions on rpm‑related directories or by configuring policy to disable macro expansion for non‑privileged users.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat hardened Images
Rpm
Rpm rpm
Vendors & Products Redhat hardened Images
Rpm
Rpm rpm

Fri, 25 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 25 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 24 Sep 2026 13:45:00 +0000

Type Values Removed Values Added
Description A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.
Title Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm
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'}


Subscriptions

Redhat Enterprise Linux Hardened Images Hummingbird
Rpm Rpm
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-01T04:04:59.834Z

Reserved: 2026-09-22T08:44:44.967Z

Link: CVE-2026-95521

cve-icon Vulnrichment

Updated: 2026-09-24T15:01:41.978Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-24T14:18:20.290

Modified: 2026-09-24T21:00:46.893

Link: CVE-2026-95521

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-24T12:35:33Z

Links: CVE-2026-95521 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-28T19:43:16Z

Weaknesses
  • CWE-78

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