CVE-2024-27280
No exploitation reported by the sources we read.
- Published2024-05-14
- Fixed in3.0.1.1
- WeaknessCWE-120
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2024-05-1415:11CVE publishedNVD
Versions per branch
OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | < 3.0.1.1 | 3.0.1.1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.3, ≤ 3.0.6 | no fix published | CISA-ADP |
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
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
Red Hat Security Advisory: ruby security update
Red Hat Security Advisory: ruby security update
Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update
Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update
Red Hat Security Advisory: ruby:3.1 security, bug fix, and enhancement update
2 more advisories
Fix
- Update stringio to 3.0.1.1
- 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
- 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
- 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
- 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.
- 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
- PoC-in-GitHubno public repository identifiedread 2026-12-03
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2024-05-09
- CISA-ADPCVSS 3.19.82024-05-09
- CISA-ADPweakness (CWE)CWE-1202024-05-09
- FIRST EPSSEPSS score2.4 %2026-12-03
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCritical2024-03-25
Identifiers
- CGA-8ggx-m64x-xq36same flawChainguard · CC-BY-NC-ND-4.0
- CGA-q3f9-4567-256hsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-1008same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-v5h6-c2hv-hv3rsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2024:3500advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3546advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3668advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3670advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3671advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3838advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:4499advisory covering several CVEsAlmaLinux · MIT
- DLA-3858-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5677-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2024-0160advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-1433advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2024:3500advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3546advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3668advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3670advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3671advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3838advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4499advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:3546advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3668advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3670advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3671advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:4499advisory covering several CVEsRocky Linux · BSD-3-Clause
- USN-6853-1advisory covering several CVEsUbuntu
- USN-7734-1advisory covering several CVEsUbuntu
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?
Is CVE-2024-27280 actively exploited?
What is the CVSS score for CVE-2024-27280?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-v5h6-c2hv-hv3r
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0