Skip to content
Red HatCVE-2026-95521

Red Hat rpm: command injection

High7.8CVE-2026-95521 · Published Sep 24, 2026

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.

Red Hat advisory

Affected versions

PackageAffectedFixed in
Red Hat Enterprise Linux 10
Product
all versionsNo fix yet
Red Hat Enterprise Linux 6
Product
all versionsNo fix yet
Red Hat Enterprise Linux 7
Product
all versionsNo fix yet
Red Hat Enterprise Linux 8
Product
all versionsNo fix yet
Red Hat Enterprise Linux 9
Product
all versionsNo fix yet
Red Hat Hardened Images
Product
all versionsNo fix yet
Details and references
CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity from
the vendor (its own CVE record or advisory)
Weakness
CWE-78

More Red Hat advisories

All Red Hat
Advisory
Red Hat pulpcore: path traversal
High8.1Sep 24
Red Hat rpm: code execution
High7.8Sep 24
Red Hat Ansible Automation Platform 2: authentication bypass by spoofing
Medium6.8Sep 24
Red Hat Admin REST API of Keycloak: missing authorization
Medium4.3Sep 24
Red Hat GIMP.: out-of-bounds write
High7.8Sep 24
Red Hat Build of Keycloak: missing authorization
Medium4.2Sep 24

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.