CVE-2024-27280: StringIO buffer overread vulnerability
Affects stringioSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 3.0.1.1 as a priority.
Data as of 4 Nov 2026, 17:27 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 9.8 |
|---|
- Patch
- Available – fixed in 3.0.1.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Upgrade stringio to 3.0.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsstringio | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available. Users should update the StringIO gem to version 3.0.1.1 or later. For Ruby 3.0 users, update to stringio 3.0.1.1; for Ruby 3.1 users, update to stringio 3.1.0.2. Use `gem update stringio` or add `gem "stringio", ">= 3.0.1.2"` to your Gemfile if using bundler. Ruby 3.2.x and later versions are not affected.
Description
CVE-2024-27280 is a critical buffer overread vulnerability in the StringIO Ruby gem versions prior to 3.0.1.1. The flaw allows the ungetbyte and ungetc methods to read past the end of a string, potentially causing subsequent calls to StringIO.gets to return unintended memory contents. This issue affects Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4. The vulnerability is fixed in StringIO 3.0.1.1 and later, and Ruby 3.2.x and later are not affected.
References
- nvd.nist.gov/vuln/detail/CVE-2024-27280 (opens in a new tab)
- github.com/ruby/stringio/commit/0e596524097706263d10900ca180898e4a8f5233 (opens in a new tab)
- github.com/ruby/stringio/commit/c58c5f54f1eab99665ea6a161d29ff6a7490afc8 (opens in a new tab)
- hackerone.com/reports/1399856 (opens in a new tab)
- github.com/ruby/stringio (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/stringio/CVE-2024-27280.yml (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/09/msg00000.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N (opens in a new tab)
- security.netapp.com/advisory/ntap-20250502-0003 (opens in a new tab)
- ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280 (opens in a new tab)
- seclists.org/fulldisclosure/2025/Sep/53 (opens in a new tab)
- seclists.org/fulldisclosure/2025/Sep/54 (opens in a new tab)
- seclists.org/fulldisclosure/2025/Sep/55 (opens in a new tab)