What’s Vulnerable › Vulnerabilities
CVE-2026-95521: Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-24 · updated 2026-11-01
- Weakness: CWE-78
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.
Affected products
- Red Hat Enterprise Linux 10: all versions
- Red Hat Enterprise Linux 7: all versions
- Red Hat Enterprise Linux 8: all versions
- Red Hat Enterprise Linux 9: all versions
- Red Hat Hardened Images: all versions
References
- https://access.redhat.com/security/cve/CVE-2026-95521
- https://bugzilla.redhat.com/show_bug.cgi?id=2537812
Get alerted when CVE-2026-95521 or the next vulnerability affects your stack