cvelo
P2 · HighCVSS 7.8

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

  • CVE-2026-95521
  • GHSA-7prr-g333-3h48
  • EUVD-2026-85878

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.

Text from the CVE.org record.

Affected

  • Red Hat Red Hat Enterprise Linux 10

    • No versions listed
  • Red Hat Red Hat Enterprise Linux 6

    • No versions listed
  • Red Hat Red Hat Enterprise Linux 7

    • No versions listed
  • Red Hat Red Hat Enterprise Linux 8

    • No versions listed
  • Red Hat Red Hat Enterprise Linux 9

    • No versions listed
  • Red Hat Red Hat Hardened Images

    • No versions listed
  • Red Hat Red Hat OpenShift AI (RHOAI)

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.