Integer Overflow or Wraparound Affecting radare2 package, versions <4.0.0-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. 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-ALPINE319-RADARE2-6111364
  • published8 Dec 2023
  • disclosed5 Dec 2019

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 Alpine:3.19 radare2 to version 4.0.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream radare2 package and not the radare2 package as distributed by Alpine. See How to fix? for Alpine:3.19 relevant fixed versions and status.

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.

CVSS Scores

version 3.1