Heap-buffer-overflow in parse_relocation_info in radare2

radare2 Updated 02 Oct 2025

Summary

28/07/2020
MEDIUM
Yes i
Medium
Not published

OSV-2020-1386: Heap-buffer-overflow in parse_relocation_info. Affects radare2 versions >= ee9025c9170c15dea5e68d4d5179d41e78868493, < ca8d8b39f3e34a4fd943270330b80f1148129de4. Fixed in ca8d8b39f3e34a4fd943270330b80f1148129de4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

radare2 is an open-source framework for reverse engineering and analyzing binary files. It provides a set of tools and libraries to assist in tasks such as disassembling, debugging, and analyzing executable files. The vulnerability in question affects the parse_relocation_info function within radare2, which is responsible for parsing relocation information. This vulnerability can lead to a heap-buffer-overflow, potentially resulting in a crash or arbitrary code execution.

Vulnerability Detail

The vulnerability arises due to a heap-buffer-overflow in the parse_relocation_info function. This can be triggered by an attacker providing specially crafted relocation information, leading to a read of 4 bytes beyond the bounds of the allocated buffer. An attacker exploiting this vulnerability could potentially execute arbitrary code or cause a denial of service. The vulnerability was discovered through an OSS-Fuzz report and has been assigned a medium severity level.

How To Fix

Minimum fixed version

ca8d8b39f3e34a4fd943270330b80f1148129de4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, users can avoid the vulnerability by refraining from using the affected functionality or by implementing input validation to ensure that only valid relocation information is provided. Here is an example of how input validation can be implemented in C:

void parse_relocation_info(char* relocation_info) {
  if (validate_relocation_info(relocation_info)) {
    // Proceed with parsing
  } else {
    // Handle invalid input
  }
}

bool validate_relocation_info(char* relocation_info) {
  // Implement validation logic
}

Conclusion

In conclusion, the heap-buffer-overflow vulnerability in parse_relocation_info in radare2 can be mitigated by updating to a version that includes the fix. Users can also implement input validation as a temporary workaround. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for radare2 →

Share this vulnerability

FAQ

radare2 is an open-source framework for reverse engineering and analyzing binary files. It provides a range of tools and libraries for tasks such as disassembling, debugging, and analyzing executable files.

This vulnerability can lead to a heap-buffer-overflow, potentially resulting in a crash or arbitrary code execution. An attacker exploiting this vulnerability could gain control over the affected system or cause a denial of service.

This vulnerability was discovered through an OSS-Fuzz report, which identified a heap-buffer-overflow in the parse_relocation_info function.

This vulnerability has been assigned a medium severity level.

To fix this vulnerability, it is recommended to update radare2 to a version that includes the fix. The fix for this vulnerability was implemented in commit ca8d8b39f3e34a4fd943270330b80f1148129de4.

Related vulnerabilities

Recent vulnerabilities recorded for radare2.

How To Fix

Minimum fixed version

ca8d8b39f3e34a4fd943270330b80f1148129de4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback