CVE-2024-27280
StringIO buffer overread vulnerability
Also known as GHSA-v5h6-c2hv-hv3r
Mitigation
- Upgrade stringio to 3.0.1.1 or later.
Who should check
- Projects that depend on RubyGems package stringio (< 3.0.1.1)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running ruby-lang ruby >= 3.0.3, <= 3.0.6
Vulnerability facts
- Affected
- stringio < 3.0.1.1
- Fixed in
- 3.0.1.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 3.04% chance of exploitation in 30 days (percentile 88, 2026-11-26)
- CWE
- CWE-120
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-27280. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-27280.md Affected: stringio < 3.0.1.1 Fixed in: 3.0.1.1 Steps: 1. Search this machine and project for stringio (RubyGems), n/a, ruby-lang ruby: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://hackerone.com/reports/1399856
- https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/
- https://security.netapp.com/advisory/ntap-20250502-0003/
- http://seclists.org/fulldisclosure/2025/Sep/55
- http://seclists.org/fulldisclosure/2025/Sep/54
- http://seclists.org/fulldisclosure/2025/Sep/53
- https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/
- https://github.com/ruby/stringio
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/stringio/CVE-2024-27280.yml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N
- https://security.netapp.com/advisory/ntap-20250502-0003
- https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280
FAQ
Is CVE-2024-27280 being exploited?
There is no confirmed exploitation: CVE-2024-27280 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.04% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-27280?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-27280?
stringio < 3.0.1.1.
Is there a fix for CVE-2024-27280?
Yes. Fixed in 3.0.1.1. Upgrade stringio to 3.0.1.1 or later.
How do I check if I'm affected by CVE-2024-27280?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.