Skip to main content
No exploitation reportedFix available

CVE-2024-27280

No exploitation reported by the sources we read.

  • Published2024-05-14
  • Fixed in3.0.1.1
  • WeaknessCWE-120

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-1415:11CVE publishedNVD

Versions per branch

OSV · CISA-ADP
stringio
BranchAffectedFixed in
3.0< 3.0.1.13.0.1.1
Ruby
BranchAffectedFixed in
3.0≥ 3.0.3, ≤ 3.0.6no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

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

  • rubyTuxCare:AlmaLinux:9.2all versions · fixed in 3.0.4-160.el9_2.tuxcare.els15and 4 other packages
  • rubyRocky Linux:8all versions · fixed in 0:3.1.5-143.module+el8.10.0+1826+b62220b4
  • rubyRocky Linux:8all versions · fixed in 0:2.5.9-112.module+el8.10.0+1839+f1f156ae
  • rubyRocky Linux:8all versions · fixed in 0:3.3.1-2.module+el8.10.0+1827+16ecb9d2
  • rubyRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:3.0.7-162.el9_4and 6 other packages
  • rubyRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:3.1.5-144.module+el9.4.0+21780+79b7bdb5and 9 other packages
  • rubyRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:3.3.1-2.module+el9.4.0+21859+16f07581and 9 other packages
  • rubyRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:3.0.7-143.module+el8.10.0+21858+d19f3934and 7 other packages

343 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-27280 Red Hat Product Security901 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 · +44 more

  • 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

Fix

  1. Update stringio to 3.0.1.1
  2. Vendor fix Red Hat Product Security RHSA-2024:4499 · 144 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:3671 · 143 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:3500 · 117 productsFor details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Workaround from the vendor Red Hat Product Security RHSA-2024:4499 · 144 productsMitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  6. No fix planned, says the vendor Red Hat Product Security CVE-2024-27280 · 47 productsOut of support scope

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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-06-17
NVD status
Deferred
GitHub advisory
GHSA-v5h6-c2hv-hv3r

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-12-03, 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

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record