Skip to content
Threat Brief

← All advisories

CVE-2026-95521

High 7.8No known exploitationFix available

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

Record last updated

CVSS score

7.8

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.7%

Higher than 55% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-78

Patching and mitigation

Patch status
Fix available (source: Microsoft MSRC)
Fix documented (source date)
Mitigation
To mitigate this issue, Red Hat recommends avoiding the installing or rebuilding of source RPMs from untrusted or unverified sources.
Vendor guidance
msrc.microsoft.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Microsoftazl3 rpm 4.18.2-2 on Azure Linux 3.0Not documentedNot documentedMicrosoft MSRC
Red HatRed Hat Enterprise Linux 10Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 9Not documentedNot documentedCVE Program
Red HatRed Hat Hardened ImagesNot documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 6 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift AI (RHOAI) (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

  2. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  3. Advisory change

    Microsoft advisory revised (2.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  4. Patch

    Fix documented by Microsoft MSRC

    Source: Microsoft MSRC (opens in a new tab)

Vendor guidance and references