Buffer Over-read Affecting stringio package, versions >=3.0.1, <3.0.1.1


Severity

Recommended
0.0
low
0
10

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

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-RUBY-STRINGIO-6476910
  • published22 Mar 2024
  • disclosed21 Mar 2024
  • creditdavid_h1

Introduced: 21 Mar 2024

CVE-2024-27280  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade stringio to version 3.0.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Over-read due to the improper handling of the ungetbyte and ungetc methods on a StringIO object, which can read past the end of a string. An attacker can obtain sensitive information from memory by invoking StringIO.gets after calling these methods.

CVSS Scores

version 3.1