# CVE-2026-95521: Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-24 · Modified: 2026-11-24
- Aliases: UBUNTU-CVE-2026-95521, DEBIAN-CVE-2026-95521
- Record: https://cvemate.com/vulnerability/CVE-2026-95521 · JSON: https://cvemate.com/vulnerability/CVE-2026-95521/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.733%, percentile 55.744%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian rpm (Debian): All versions (No fix recorded)
- ubuntu rpm (Ubuntu): All versions (No fix recorded)

## References

- <https://access.redhat.com/security/cve/CVE-2026-95521>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2537812>
- <https://ubuntu.com/security/CVE-2026-95521>
- <https://www.cve.org/CVERecord?id=CVE-2026-95521>
- <https://security-tracker.debian.org/tracker/CVE-2026-95521>

---

Data as of 2026-12-05T03:25:19.951Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
