Skip to main content

XiangShan RISC-V Processor EUVDEUVD-2026-24131

| CVE-2026-29644 MEDIUM
Improper Access Control (CWE-284)
2026-04-21 mitre GHSA-p2hj-qw82-grpc
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Gain code execution on processor core
  2. Delivery
    Craft illegal CSR write instruction
  3. Exploit
    Bypass CSR write-enable gate
  4. Install
    Alter PMA configuration state
  5. C2
    Modify memory attribute enforcement
  6. Execute
    Access or execute protected memory
  7. Impact
    Achieve privilege escalation or disclosure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

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

Exploitation Conditions

Code execution on the XiangShan processor core at privilege level L or higher (specific privilege level depends on system integration and PMA configuration). The attacker must be able to issue CSR write instructions; this is available to any code executing in the affected privilege context (user-mode, supervisor-mode, or machine-mode depending on design). The vulnerability is unconditional once code execution is achieved - no special processor configuration, firmware version, or optional feature setting is required to trigger the improper CSR gating. The attack is limited to local execution on the core; remote exploitation is not possible. Additionally, the practical impact depends on whether PMA is actually used for security-critical memory isolation in the deployed system; systems that do not rely on PMA for access control may not experience exploitable consequences from CSR tampering.

Impact

The CVSS 5.3 score reflects local attack vector (AV:L), low complexity (AC:L), and low privilege requirement (PR:L), indicating local attackers with some privilege level can exploit this. The confidentiality, integrity, and availability impacts are all listed as low (C:L/I:L/A:L), suggesting bounded damage per exploit. However, the real-world risk depends critically on platform integration: if PMA is used to enforce critical security boundaries (memory isolation between security domains, kernel-userspace separation), even low-impact CSR tampering can cascade to high-severity privilege escalation or information disclosure. The vulnerability is a design flaw in hardware, not software; exploitation requires code execution on the processor core itself, limiting attack surface compared to network-reachable vulnerabilities. No KEV listing, POC, or EPSS score is available to assess exploitation probability. The privilege requirement (PR:L) suggests the attacker must already have some execution context on the core; the specific privilege level and how it maps to practical attack scenarios depends on system integration (hypervisor, kernel, container runtime). Given that this is a processor design flaw affecting open-source hardware used in research and some embedded systems, the practical impact is likely contained to those deployments, but the severity for any system using PMA for security isolation could be significant.

Exploit ScenarioDerived

An attacker with local code execution at privilege level L (e.g., user-mode process or low-privilege kernel task, depending on integration) crafts CSR write instructions targeting non-existent or restricted PMA configuration registers. Instead of raising an illegal-instruction exception as required by RISC-V, the processor writes to the replicated PMA state, altering memory attribute enforcement. The attacker then reads or executes from memory regions that should be protected by the modified PMA settings, escalating privilege or accessing sensitive data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 21, 2026

XiangShan open-source RISC-V processor commit edb1dfaf7d290ae99724594507dc46c2c2125384 and earlier versions fail to properly gate the Control and Status Register (CSR) write-enable path for Physical Memory Attribute (PMA) configuration, allowing local attackers with code execution privileges to write to PMA CSRs that should raise illegal-instruction exceptions per the RISC-V specification. Successful exploitation enables attackers to alter memory attribute enforcement, potentially leading to privilege escalation, information disclosure, or denial of service depending on platform security boundaries. No public exploit code or active exploitation has been confirmed at time of analysis.

RemediationAI

Apply the upstream fix from commit 2b1f9796aa98597e5eeac32e5bb1418496987ca4 (https://github.com/OpenXiangShan/XiangShan/commit/2b1f9796aa98597e5eeac32e5bb1418496987ca4), which corrects the CSR write-enable gating logic to properly enforce RISC-V specification requirements for illegal CSR accesses. Since XiangShan is open-source hardware design, remediation requires rebuilding and deploying the updated RTL (register-transfer language) design; organizations using synthesized XiangShan cores must regenerate masks or bitstreams from the patched source. For deployed silicon or embedded systems, hardware remediation may not be feasible; compensating controls include disabling or restricting PMA-dependent security features if they are optional, applying operating-system-level memory protection that does not rely on PMA (such as page-table-based isolation), and restricting local code execution privileges to trusted software only. Organizations integrating XiangShan should review whether PMA is used for critical security isolation; if so, prioritize design update and redeployment. Detailed PMA documentation is available at https://xiangshan-doc-test.readthedocs.io/next/memory/mmu/pmp_pma/.

Affected VersionsENISA

n/a n/a

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

XiangShan is an open-source high-performance RISC-V processor design. Control and Status Registers (CSRs) are privileged registers in RISC-V that control processor behavior; the RISC-V Privileged Architecture Specification mandates that illegal CSR accesses raise illegal-instruction exceptions. Physical Memory Attributes (PMA) are configuration CSRs that govern memory access permissions and enforcement. The vulnerability stems from improper gating logic in the distributed CSR write-enable path, a design-level control mechanism that should prevent writes to PMA registers that do not exist or are not accessible in the current privilege context. Instead of blocking these illegal writes and raising exceptions as required, the affected design allows writes to propagate to replicated PMA state, violating the RISC-V specification contract. The root cause is classified under CWE-284 (Improper Access Control), reflecting the failure to enforce register access restrictions at the hardware level.

Know when N A 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

NVD PRIMARY 5.3 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
CVSS changed
Apr 21, 2026 - 18:22 NVD
5.3 (MEDIUM)
CVE Published
Apr 21, 2026 - 00:00 nvd
MEDIUM 5.3

DescriptionCVE.org

XiangShan (open-source high-performance RISC-V processor) commit edb1dfaf7d290ae99724594507dc46c2c2125384 (2024-11-28) has improper gating of its distributed CSR write-enable path, allowing illegal CSR write attempts to alter custom PMA (Physical Memory Attribute) CSR state. Though the RISC-V privileged specification requires an illegal-instruction exception for non-existent/illegal CSR accesses, affected XiangShan versions may still propagate such writes to replicated PMA configuration state. Local attackers able to execute code on the core (privilege context depends on system integration) can exploit this to tamper with memory-attribute enforcement, potentially leading to privilege escalation, information disclosure, or denial of service depending on how PMA enforces platform security and isolation boundaries.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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