Buffer overflowin ruby-lang Ruby.
No public exploit found; not on exploited lists.
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.
- Upgrade stringio (RubyGems) to 3.0.1.1 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 Feb 2024CVE ID reserved by mitre.
- 8 May 2024Published in the CVE List.
- 4 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other Ruby vulnerabilities
Same weakness: Classic buffer overflow
- hackerone.com
- www.ruby-lang.org
- security.netapp.com
- seclists.org
- seclists.org
- seclists.org
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
Patchminder. CVE-2024-27280: Buffer overflow in ruby-lang Ruby. https://patchminder.com/cve/cve-2024-27280/ (accessed 5 December 2026).