UNKNOWN READ in r_str_ncpy in radare2

radare2 Updated 02 Oct 2025

Summary

07/10/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-974: UNKNOWN READ in r_str_ncpy. Affects radare2 across 2 version ranges.

< 9a310ec866cc802adf7245b76e357ea0f6145e59 >= 71fe0470e5b64572c4629bf2ed33bcf4b62d9322, < 59806217f8fdadd4de7d0edab81c40442d9aec75

Fixed in 59806217f8fdadd4de7d0edab81c40442d9aec75. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

radare2 is an open-source framework for reverse engineering and analyzing binaries. It provides a set of command-line tools and libraries for disassembling, debugging, and analyzing various file formats. The vulnerability in radare2 is related to an unknown read issue in the r_str_ncpy function.

Vulnerability Detail

The vulnerability in radare2 is categorized as an UNKNOWN READ issue. The specific crash state is in the r_str_ncpy function, which is called by Elf64_load_symbols_from and Elf64_load_symbols. The exact cause and impact of this vulnerability are not provided in the available information.

How To Fix

Minimum fixed version

59806217f8fdadd4de7d0edab81c40442d9aec75

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

No specific workaround is mentioned for this vulnerability.

Conclusion

The UNKNOWN READ vulnerability in radare2's r_str_ncpy function can be addressed by updating to the latest version of the package. It is recommended to update to radare2 version 3.0.1 or later to mitigate the risk associated with this vulnerability. For further support on 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 binaries. It provides a set of command-line tools and libraries for disassembling, debugging, and analyzing various file formats.

An UNKNOWN READ vulnerability refers to a situation where an unknown memory read operation occurs, potentially leading to crashes or other security issues. In the case of radare2, the UNKNOWN READ issue is present in the r_str_ncpy function.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your version of radare2 is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities.

Yes, the vulnerability has been fixed in radare2 versions 3.0.1 and later. It is recommended to update to the latest version to address the UNKNOWN READ issue in r_str_ncpy.

You can find more information about this vulnerability in the OSS-Fuzz report linked in the provided details: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63030

Related vulnerabilities

Recent vulnerabilities recorded for radare2.

How To Fix

Minimum fixed version

59806217f8fdadd4de7d0edab81c40442d9aec75

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