Skip to main content
CRITICAL

CVE-2024-27280

CVSS v3

9.8

CRITICAL

EPSS Score

2.4 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for stringio.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • stringioRubyGemsall versions · fixed in 3.0.1.1
  • rubyRocky Linux:8all versions · fixed in 0:3.1.5-143.module+el8.10.0+1826+b62220b4
  • rubyAlmaLinux:9all versions · fixed in 3.0.7-162.el9_4and 4 other packages
  • rubyAlmaLinux:8all versions · fixed in 2.5.9-112.module_el8.10.0+3871+342e2c2fand 4 other packages
  • ruby-bundled-gemsAlmaLinux:9all versions · fixed in 3.3.1-2.module_el9.4.0+102+68a93853
  • ruby-bundled-gemsAlmaLinux:8all versions · fixed in 3.3.1-2.module_el8.10.0+3855+767cb125and 1 other package
  • rubygem-abrtRocky Linux:8all versions · fixed in 0:0.4.0-1.module+el8.10.0+1679+61871737
  • rubygem-abrtAlmaLinux:8all versions · fixed in 0.3.0-4.module_el8.10.0+3871+342e2c2fand 1 other package

48 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-27280 Red Hat Product Security983 products fixed · 47 known affected

    ruby: Buffer overread vulnerability in StringIO

    ruby as a component of Red Hat Enterprise Linux 6 · ruby-devel as a component of Red Hat Enterprise Linux 6 · ruby-docs as a component of Red Hat Enterprise Linux 6

  • RHSA-2024:4499 Red Hat Product Security144 products fixed

    Red Hat Security Advisory: ruby security update

  • RHSA-2024:3838 Red Hat Product Security82 products fixed

    Red Hat Security Advisory: ruby security update

  • RHSA-2024:3671 Red Hat Product Security143 products fixed

    Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update

  • RHSA-2024:3670 Red Hat Product Security146 products fixed

    Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update

  • RHSA-2024:3668 Red Hat Product Security133 products fixed

    Red Hat Security Advisory: ruby:3.1 security, bug fix, and enhancement update

2 more advisories

Full record on NVD

Description

A buffer-overread 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. 3.0.3 is the main fixed version; however, for Ruby 3.0 users, a fixed version is stringio 3.0.1.1, and for Ruby 3.1 users, a fixed version is stringio 3.0.1.2.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-05-14
Last Modified
2026-04-15

Frequently asked questions

What is CVE-2024-27280?

A buffer-overread 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. 3.0.3 is the main fixed version; however, for Ruby 3.0 users, a fixed version is stringio 3.0.1.1, and for Ruby 3.1 users, a fixed version is stringio 3.0.1.2.

Is CVE-2024-27280 actively exploited?

Active exploitation of CVE-2024-27280 has not been confirmed. Its EPSS score was 2.4% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-27280?

CVE-2024-27280 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running stringio? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month