CVE-2026-95521
Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm
- High 7.8
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.
Key facts
- Published
- 24 Sep 2026
- Last changed
- 6 Nov 2026
- Assigned by
- redhat
- EPSS
- 0.733% likely to be exploited in the next 30 days, higher than 54.992% of CVEs (scores for 17 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 7.8CVSS 3.1, Highfrom the CNA (redhat)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What to do
- To mitigate this issue, Red Hat recommends avoiding the installing or rebuilding of source RPMs from untrusted or unverified sources.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 |
|
| Red Hat | Red Hat Enterprise Linux 6 |
|
| Red Hat | Red Hat Enterprise Linux 7 |
|
| Red Hat | Red Hat Enterprise Linux 8 |
|
| Red Hat | Red Hat Enterprise Linux 9 |
|
| Red Hat | Red Hat Hardened Images |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
| Red Hat | Red Hat OpenShift AI (RHOAI) |
|
Timeline
- 18 Sep 2026 Reported to Red Hat.
- 24 Sep 2026 Made public.
- 24 Sep 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on OS command injection (CWE-78).