Integer Overflow or Wraparound Affecting radareorg/radare2 package, versions [,4.5.0)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
2.99% (91st 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-3003983
  • published26 Jan 2022
  • disclosed5 Dec 2019
  • creditUnknown

Introduced: 5 Dec 2019

CVE-2019-19590  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade radareorg/radare2 to version 4.5.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. In radare2 through 4.0, there is an integer overflow for the variable new_token_size in the function r_asm_massemble at libr/asm/asm.c. This integer overflow will result in a Use-After-Free for the buffer tokens, which can be filled with arbitrary malicious data after the free. This allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via crafted input.

References

CVSS Scores

version 3.1