Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .src.rpm with %() macro in source/spec basename
  2. Delivery
    Deliver via untrusted repo, email, or build pipeline
  3. Exploit
    Victim installs or rebuilds the source RPM
  4. Execution
    rpm passes crafted name to popen() during relocation
  5. Impact
    Shell command executes as invoking user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a victim install, rebuild, or otherwise process an attacker-controlled source package (.src.rpm) whose source or spec file basename contains a %() macro construct; there is no remote network trigger. Limiting factors: local attack vector (the malicious SRPM must reach and be processed on the target host), mandatory user/operator interaction (someone must run rpm/rpmbuild against the untrusted package), and execution confined to the invoking user's privileges (typically non-root, so no inherent root compromise). Highest-risk deployments are build farms, CI/CD pipelines, and packagers that automatically process third-party or untrusted source RPMs.

Impact

This is a genuine command-injection flaw (CWE-78) in rpm, the package manager underpinning every RPM-based Linux distribution, so the affected codebase is essentially ubiquitous despite the CPE list naming only Red Hat products. However, the CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H = 7.8 High) is bounded by two important factors: it is a LOCAL attack vector (AV:L) and it requires user interaction (UI:R) - a victim must actively install, rebuild, or otherwise process an attacker-supplied .src.rpm. Code runs only as the invoking (typically non-root, per the description) user, so there is no automatic privilege escalation. No EPSS score, no CISA KEV listing, and no public POC were provided, so exploitation is theoretical rather than observed. There is no SSVC decision data supplied. The realistic priority is moderate: high technical impact (full command execution) but gated by local access plus a deliberate victim action against an untrusted source package. This is a supply-chain / trojaned-package concern (malicious SRPM from an untrusted repo or build farm) more than a broad remote-exploitation threat. No signals conflict; the only tension is that PR:N pairs with a scenario that in practice requires an operator to run rpm on hostile input, which UI:R captures.

Exploit ScenarioDerived

An attacker publishes or emails a malicious .src.rpm whose source or spec file basename embeds a %() macro construct wrapping a shell command. When a developer, packager, or CI build system installs or rebuilds that source RPM, rpm relocates the source file list and passes the crafted name to popen(), executing the attacker's command as the invoking user. No public exploit code was identified at time of analysis, but the technique is straightforward to reproduce from the description.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Command injection in rpm enables an attacker to run arbitrary shell commands as the invoking user when a victim installs, rebuilds, or otherwise processes a malicious source RPM (.src.rpm) that contains a %() macro construct in a source or spec file basename. The flaw is local and requires user interaction, with impact confined to the privileges of the user running rpm or rpmbuild, typically non-root; build farms and CI/CD pipelines that automatically handle untrusted SRPMs are the highest-risk targets. Red Hat CPEs list RHEL 6 through 10 and Red Hat Hardened Images, and no public exploit was identified in the provided intelligence; monitor the vendor advisory for exploitation and patch updates.

RemediationAI

No exact fixed rpm version was provided in the intelligence; monitor the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-95521 and Bugzilla 2537812 for vendor patched packages and apply them as soon as they are released. Until a patch is available, treat all untrusted .src.rpm files as executable code: do not install, rebuild, or otherwise process source RPMs from third parties, especially those whose source or spec file basenames contain %() macro constructs. Where SRPM processing is required, run rpm/rpmbuild as an unprivileged, disposable user in an isolated VM or container without access to secrets, network, or production data, and disable automatic SRPM ingestion in build farms and CI/CD pipelines; these mitigations reduce the attack surface but may slow legitimate packaging workflows and should be paired with manual inspection of source package contents.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rpm is the core package-management system for RPM-based Linux distributions, and the vulnerability is an OS command injection (CWE-78) in its handling of source RPM contents. During processing of a .src.rpm, rpm relocates the source file list; if a source or spec file basename includes the %() macro construct, rpm's macro expansion can invoke popen() with attacker-controlled content instead of treating the name as data. The resulting shell command executes as the user invoking rpm/rpmbuild, so a malicious SRPM can achieve arbitrary command execution without requiring root. The CVSS vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H indicates a local attack, no privileges required, mandatory user interaction, and high confidentiality, integrity, and availability impact within the user's context. CPE data attributes the issue to Red Hat Enterprise Linux 6, 7, 8, 9, and 10 and Red Hat Hardened Images, but because rpm is upstream software, other RPM-based distributions may share the vulnerable code path.

Know when Rpm gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local vector because a malicious SRPM must be processed on-host; UI:R because a victim must install/rebuild it; PR:N since no prior authentication is needed; full C/I/A as arbitrary commands run as the invoking user.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.8 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity command injection flaw in the rpm package affects Red Hat Enterprise Linux 6 through 10 as well as Red Hat Hardened Images, allowing a crafted source RPM to execute arbitrary shell commands with the privileges of whoever processes it. The sharpest organizational exposure is in automated build farms and CI/CD pipelines that routinely ingest source packages from external or untrusted sources, where one malicious SRPM can compromise build integrity and every artifact produced downstream. With no vendor patch available, leadership should treat this as a supply-chain hygiene and pipeline-governance problem requiring immediate containment rather than a routine update cycle.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: prohibit processing of untrusted .src.rpm files until a fix is available; where processing is unavoidable, confine rpm/rpmbuild operations to disposable, network-isolated containers or VMs running under dedicated non-privileged accounts with no access to credentials, secrets, or production systems; pre-screen incoming SRPMs for %() macro constructs in spec and source file basenames and quarantine anything matching; enforce least privilege and short-lived credentials on build agents; and monitor build hosts for unexpected child shell processes or anomalous command execution.

Threat Intelligence Overview

EPSS Score
0.6%
Top 55% exploitable
Prevalence
Ubiquitous
rpm is the core package manager in all RPM-based Linux distributions
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_6:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_hardened_images:*:*:*:*:*:*:*:*

More in Rpm

View all
CVE-2019-3817 HIGH POC
8.8 Mar 27

A use-after-free flaw has been discovered in libcomps before version 0.1.10 in the way ObjMRTrees are merged. Rated high

CVE-2024-1929 HIGH POC
8.4 May 08

Local Root Exploit via Configuration Dictionary in dnf5daemon-server before 5.1.17 allows a malicious user to impact Con

CVE-2014-8118 CRITICAL
10.0 Dec 16

Integer overflow in RPM 4.12 and earlier allows remote attackers to execute arbitrary code via a crafted CPIO header in

CVE-2013-6435 HIGH
7.6 Dec 16

Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose

CVE-2012-0815 MEDIUM
6.8 Jun 04

The headerVerifyInfo function in lib/header.c in RPM before 4.9.1.3 allows remote attackers to cause a denial of service

CVE-2018-10897 HIGH
8.1 Aug 01

A directory traversal issue was found in reposync, a part of yum-utils, where reposync fails to sanitize paths in remote

CVE-2026-95519 HIGH
7.8 Sep 24

Local attackers can achieve arbitrary code execution by tricking a user or automation into processing a crafted manifest

CVE-2017-7501 HIGH
7.8 Nov 22

It was found that versions of rpm before 4.13.0.2 use temporary files with predictable names when installing an RPM. Rat

CVE-2012-0061 MEDIUM
6.8 Jun 04

The headerLoad function in lib/header.c in RPM before 4.9.1.3 does not properly validate region tags, which allows user-

CVE-2012-0060 MEDIUM
6.8 Jun 04

RPM before 4.9.1.3 does not properly validate region tags, which allows remote attackers to cause a denial of service (c

CVE-2021-3445 HIGH
7.5 May 19

A flaw was found in libdnf's signature verification functionality in versions before 0.60.1. Rated high severity (CVSS 7

CVE-2026-103242 HIGH
7.1 Sep 30

Heap-based buffer overflow in RPM's package-header parsing lets a crafted, unsigned RPM overwrite memory when a victim m

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy