CVE-2026-95521

published 24 Sep 2026 · updated 19 Nov 2026

Rpm: rpm: shell command injection via macro expansion of source/spec file basenames when installing a source rpm

7.8HighCVSS 7.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatHardened Images
Red HatOpenShift AI

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-95521 severity on Zeptric[![CVE-2026-95521](https://zeptric.io/badge/cve/CVE-2026-95521.svg)](https://zeptric.io/cve/CVE-2026-95521)