Heap-based Buffer Overflow Affecting ruby package, versions [,1.9.1-p376)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.06% (85th 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-RUBY-5665463
  • published4 Jun 2023
  • disclosed4 Jun 2023
  • creditEmmanouel Kellinis

Introduced: 4 Jun 2023

CVE-2009-4124  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade ruby to version 1.9.1-p376 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the rb_str_justify function which allows context-dependent attackers to execute arbitrary code via unspecified vectors involving:

  1. String#ljust

  2. String#center

  3. String#rjust.

References

CVSS Scores

version 3.1