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


0.0
low

Snyk CVSS

    Attack Complexity High
Expand this section
Red Hat
3.1 low

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 ID SNYK-RUBY-STRINGIO-6476910
  • published 22 Mar 2024
  • disclosed 21 Mar 2024
  • credit david_h1

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.