CVE-2026-40527
Command Injection in radare2 ELF DWARF Parameter Handling
Publication date: 2026-04-17
Last updated on: 2026-04-17
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| radare2 | radare2 | to bc5a890 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in radare2 versions prior to commit bc5a890 and involves command injection through the afsv/afsvj command path.
Attackers can craft malicious ELF binaries that embed harmful radare2 command sequences within DWARF debugging information, specifically in the DW_TAG_formal_parameter names.
When radare2 analyzes such a crafted binary using the 'aaa' command and subsequently runs 'afsvj', these embedded shell commands get executed due to unsanitized parameter interpolation in the 'pfq' command string.
How can this vulnerability impact me? :
This vulnerability allows an attacker to execute arbitrary shell commands on the system running radare2 when analyzing a maliciously crafted ELF binary.
Such arbitrary command execution can lead to full compromise of confidentiality, integrity, and availability of the affected system.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability allows arbitrary shell command execution through crafted ELF binaries analyzed by radare2, potentially leading to unauthorized access, data manipulation, or system compromise.
Such unauthorized access and potential data breaches could impact compliance with standards and regulations like GDPR and HIPAA, which require protection of sensitive data and secure system operations.
However, specific impacts on compliance depend on the environment in which radare2 is used and the nature of the data processed.