Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-27280 — stringio

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-120 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

StringIO buffer overread vulnerability

An issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4.

The ungetbyte and ungetc methods on a StringIO can read past the end of a string, and a subsequent call to StringIO.gets may return the memory value.

This vulnerability is not affected StringIO 3.0.3 and later, and Ruby 3.2.x and later.

We recommend to update the StringIO gem to version 3.0.3 or later. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:

  • For Ruby 3.0 users: Update to stringio 3.0.1.1
  • For Ruby 3.1 users: Update to stringio 3.1.0.2

You can use gem update stringio to update it. If you are using bundler, please add gem "stringio", ">= 3.0.1.2" to your Gemfile.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2024-27280 is classified as CWE-120: Classic Buffer Overflow. Input is copied into a fixed-size buffer without a length check, overwriting memory past the end of it.

Affected software

CVE-2024-27280 is recorded against 2 packages.

  • stringio (fixed in 3.0.1.1)
  • unknown

Timeline and source

Published on 25 March 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
hackerone.com (Web)
github.com (Package)
github.com (Web)
lists.debian.org (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
security.netapp.com (Web)
www.ruby-lang.org (Web)
seclists.org (Web)
seclists.org (Web)
seclists.org (Web)

Same weakness in other software

These advisories are the same class of weakness (CWE-120: Classic Buffer Overflow) in other software:

CVE-2024-27280 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-120
Public Exploit ✅ No
Source NVD
Published 2024-03-25
Updated 2026-08-20
Modified 2026-02-04
Fix URL N/A

Affected Packages

Software From version Fixed in
stringio 3.0.1.1
unknown

References

Exploit Protection

Are you running stringio?

CVE-2024-27280 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2024-27280 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024