CVE-2026-95521Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm
- 7.8HighCVSS base score
- 0.73%Exploitation in 30 daysEPSS · top 45% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 2 days later
· 2 days later
Published
- 56 days later
· 56 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVDNVD · Awaiting Analysis | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.73% · top 45% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
Red Hat · Red Hat Enterprise Linux 10
All versions: affected
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: affected
Red Hat · Red Hat Enterprise Linux 8
All versions: affected
Red Hat · Red Hat Enterprise Linux 9
All versions: affected
Red Hat · Red Hat Hardened Images
All versions: affected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
Red Hat · Red Hat OpenShift AI (RHOAI)
All versions: unaffected
What to do
Workaround: To mitigate this issue, Red Hat recommends avoiding the installing or rebuilding of source RPMs from untrusted or unverified sources.
References
References2
- https://access.redhat.com/security/cve/CVE-2026-95521 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2537812 (opens in a new tab)issue-trackingx_refsource_REDHAT
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-85878 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-95521)Record last updated .