Security Resilience

CVE-2026-29642

Published
20 April 2026
Modified
21 April 2026
CVSS Score v3.1 7.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0015 2th percentile
Risk Priority 54 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-29642 is a high-severity Internal Asset Exposed to Unsafe Debug Access Level or State (CWE-1244) vulnerability. Its CVSS base score is 7.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Pre-OS Boot (T1542); ranked at the 2th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-29642 is a vulnerability in the XiangShan open-source RISC-V processor implementation, affecting versions up to commit aecf601e803bfd2371667a3fb60bfcd83c333027 (dated 2024-11-19). It stems from improper handling of reads and writes to the menvcfg control and status register (CSR) in Machine mode (M-mode), such as via csrrs instructions. These operations can unexpectedly set reserved WPRI bits in the xstatus status view to 1, violating RISC-V specifications that define WPRI fields as "writes preserve values, reads ignore values." Such fields must remain unmodified by software manipulating other CSRs, and menvcfg itself contains multiple WPRI bits. The issue is tracked under CWE-1244 with a CVSS v3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and was published on 2026-04-20.

A local attacker capable of executing privileged CSR operations—or inducing firmware to do so—can exploit this flaw with low complexity. Exploitation involves performing crafted menvcfg accesses in M-mode, leading to high-impact confidentiality, integrity, and availability effects through unauthorized modification of reserved processor state bits.

Mitigation is available via XiangShan commit 5e3dd63 on GitHub, which addresses the issue post-affected version. Additional details are in GitHub issue #3934. RISC-V privileged ISA documentation at the referenced URLs outlines machine-mode CSRs and WPRI field behaviors.

EU & UK References

Vulnerability Data

A local attacker who can execute privileged CSR operations (or can induce firmware to do so) performs carefully crafted reads/writes to menvcfg (e.g., csrrs in M-mode). On affected XiangShan versions (commit aecf601e803bfd2371667a3fb60bfcd83c333027, 2024-11-19), these menvcfg accesses can unexpectedly set WPRI…

more

(reserved) bits in the status view (xstatus) to 1. RISC-V defines WPRI fields as "writes preserve values, reads ignore values," i.e., they must not be modified by software manipulating other fields, and menvcfg itself contains multiple WPRI fields.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1542 Pre-OS Boot Stealth
Adversaries may abuse Pre-OS Boot mechanisms as a way to establish persistence on a system.
T1542.001 System Firmware Stealth
Adversaries may modify system firmware to persist on systems.
T1601 Modify System Image Defense Impairment
Adversaries may make changes to the operating system of embedded network devices to weaken defenses and provide new capabilities for themselves.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-67862Shared CWE-1244
CVE-2025-20238Shared CWE-1244
CVE-2025-23252Shared CWE-1244
CVE-2025-42878Shared CWE-1244
CVE-2025-23302Shared CWE-1244
CVE-2025-23301Shared CWE-1244
CVE-2025-23337Shared CWE-1244
CVE-2024-0114Shared CWE-1244
CVE-2025-36755Shared CWE-1244
CVE-2026-8989Shared CWE-1244

Affected Assets

—
XiangShan
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces approved authorizations on logical access, directly stopping incorrect debug access levels from being granted to untrusted agents.

Requires least-privilege assignment of access rights, preventing over-privileged debug states on internal assets.

Mandates restrictive, approved configuration settings that would block unsafe debug access level assignments.

Requires application of security engineering principles such as least privilege and isolation during design of debug mechanisms.

Isolates security functions from non-security functions, reducing exposure of internal assets through debug paths.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 full match
blocks

Secure development practices throughout the life cycle are the primary means of avoiding unsafe debug access assignments.

PR.AA-05 mostly match
blocks

Defining and enforcing least-privilege access permissions directly prevents incorrect debug access levels from being assigned.

PR.PS-01 mostly match
blocks

Configuration management practices ensure debug interfaces receive the intended access-level settings.

References