---
id: CVE-2026-40527
title: radare2 Command Injection via DWARF Parameter Names
summary: >-
  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 b…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-78
vendor: radareorg
product: radare2
affected:
  - radare2 < bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-04-20T14:19:53.868831Z'
exploitAvailable: true
published: '2026-04-17'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:02:58.947Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-40527'
references:
  - url: 'https://github.com/radareorg/radare2/pull/25821'
  - url: >-
      https://github.com/radareorg/radare2/commit/bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683
  - url: >-
      https://www.vulncheck.com/advisories/radare2-command-injection-via-dwarf-parameter-names
tags:
  - cve.org
  - exploit-available
epss: 0.00915
epssPercentile: 0.60378
ingestedAt: '2026-11-08T14:51:22.440Z'
---

## Overview

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.

## Affected

- `radare2 < bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
