CVE-2024-27280
published critical CVSS 3.1 · 9.8ruby: Buffer overread vulnerability in StringIO
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| ruby-lang | — | ruby3.0.3 through 3.0.6 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | ruby | Advisory build | 2.5.9-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| Alpine Linux | edge | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Oracle Linux | 8 | rubyaarch64 · ruby · 2.5b | Advisory build | 0:2.5.9-112.module+el8.10.0+90367+ae9e8511 | ELSA-2024-4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubyaarch64 | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | ruby | Advisory build | 3.0.7-143.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | ruby | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 9 | ruby | Advisory build | 3.0.7-162.el9_4 | ALSA-2024:3838 |
| AlmaLinux | 9 | ruby | Advisory build | 3.1.5-144.module_el9.4.0+101+d58a8d95 | ALSA-2024:3668 |
| AlmaLinux | 9 | ruby | Advisory build | 3.3.1-2.module_el9.4.0+102+68a93853 | ALSA-2024:3671 |
| Alpine Linux | v3.16 | ruby | Fixed | 3.1.5-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby | Fixed | 3.1.5-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby | Fixed | 3.2.4-r0 | Package fix record |
| Alpine Linux | v3.19 | ruby | Fixed | 3.2.4-r0 | Package fix record |
| Alpine Linux | v3.20 | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Alpine Linux | v3.21 | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby | Fixed | 3.3.1-r0 | Package fix record |
| Oracle Linux | 8 | rubyaarch64 · ruby · 3.0b | Advisory build | 0:3.0.7-143.module+el8.10.0+90343+d5e92a1d | ELSA-2024-3500 |
| Oracle Linux | 8 | rubyaarch64 · ruby · 3.1b | Advisory build | 0:3.1.5-143.module+el8.10.0+90344+fc5884b3 | ELSA-2024-3546 |
| Oracle Linux | 8 | rubyaarch64 · ruby · 3.3b | Advisory build | 0:3.3.1-2.module+el8.10.0+90349+dd8a48dc | ELSA-2024-3670 |
| Oracle Linux | 8 | rubyx86_64 · ruby · 2.5b | Advisory build | 0:2.5.9-112.module+el8.10.0+90367+ae9e8511 | ELSA-2024-4499 |
| Oracle Linux | 8 | rubyx86_64 · ruby · 3.0b | Advisory build | 0:3.0.7-143.module+el8.10.0+90343+d5e92a1d | ELSA-2024-3500 |
| Oracle Linux | 8 | rubyx86_64 · ruby · 3.1b | Advisory build | 0:3.1.5-143.module+el8.10.0+90344+fc5884b3 | ELSA-2024-3546 |
| Oracle Linux | 8 | rubyx86_64 · ruby · 3.3b | Advisory build | 0:3.3.1-2.module+el8.10.0+90349+dd8a48dc | ELSA-2024-3670 |
| Oracle Linux | 9 | rubyaarch64 | Advisory build | 0:3.0.7-162.el9_4 | ELSA-2024-3838 |
| Oracle Linux | 9 | rubyaarch64 · ruby · 3.1b | Advisory build | 0:3.1.5-144.module+el9.4.0+90348+c2ef46bf | ELSA-2024-3668 |
| Oracle Linux | 9 | rubyaarch64 · ruby · 3.3b | Advisory build | 0:3.3.1-2.module+el9.4.0+90346+4cb4c4f5 | ELSA-2024-3671 |
| Oracle Linux | 9 | rubyx86_64 | Advisory build | 0:3.0.7-162.el9_4 | ELSA-2024-3838 |
| Oracle Linux | 9 | rubyx86_64 · ruby · 3.1b | Advisory build | 0:3.1.5-144.module+el9.4.0+90348+c2ef46bf | ELSA-2024-3668 |
| Oracle Linux | 9 | rubyx86_64 · ruby · 3.3b | Advisory build | 0:3.3.1-2.module+el9.4.0+90346+4cb4c4f5 | ELSA-2024-3671 |
| Red Hat Enterprise Linux | RHEL-8 | rubyaarch64 | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubyaarch64 | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubyaarch64 | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-8 | rubyi686 | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubyi686 | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubyi686 | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubyi686 | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-8 | rubyppc64le | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubyppc64le | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubyppc64le | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubyppc64le | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-8 | rubys390x | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubys390x | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubys390x | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubys390x | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-8 | rubysrc | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubysrc | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubysrc | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubysrc | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-8 | rubyx86_64 | Advisory build | 2.5.9-112.module+el8.10.0+22021+135c76a8 | RHSA-2024:4499 |
| Red Hat Enterprise Linux | RHEL-8 | rubyx86_64 | Advisory build | 3.0.7-143.module+el8.10.0+21858+d19f3934 | RHSA-2024:3500 |
| Red Hat Enterprise Linux | RHEL-8 | rubyx86_64 | Advisory build | 3.1.5-143.module+el8.10.0+21792+e2f63d26 | RHSA-2024:3546 |
| Red Hat Enterprise Linux | RHEL-8 | rubyx86_64 | Advisory build | 3.3.1-2.module+el8.10.0+21860+47fbda2a | RHSA-2024:3670 |
| Red Hat Enterprise Linux | RHEL-9 | rubyaarch64 | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubyaarch64 | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubyaarch64 | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| Red Hat Enterprise Linux | RHEL-9 | rubyi686 | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubyi686 | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubyi686 | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| Red Hat Enterprise Linux | RHEL-9 | rubyppc64le | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubyppc64le | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubyppc64le | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| Red Hat Enterprise Linux | RHEL-9 | rubys390x | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubys390x | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubys390x | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| Red Hat Enterprise Linux | RHEL-9 | rubysrc | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubysrc | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubysrc | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| Red Hat Enterprise Linux | RHEL-9 | rubyx86_64 | Advisory build | 3.0.7-162.el9_4 | RHSA-2024:3838 |
| Red Hat Enterprise Linux | RHEL-9 | rubyx86_64 | Advisory build | 3.1.5-144.module+el9.4.0+21780+79b7bdb5 | RHSA-2024:3668 |
| Red Hat Enterprise Linux | RHEL-9 | rubyx86_64 | Advisory build | 3.3.1-2.module+el9.4.0+21859+16f07581 | RHSA-2024:3671 |
| AlmaLinux | 8 | ruby-bundled-gems | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby-bundled-gems | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 8 | ruby-default-gems | Advisory build | 3.0.7-143.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | ruby-default-gems | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby-default-gems | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 8 | ruby-devel | Advisory build | 2.5.9-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | ruby-devel | Advisory build | 3.0.7-143.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | ruby-devel | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby-devel | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 8 | ruby-doc | Advisory build | 2.5.9-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | ruby-doc | Advisory build | 3.0.7-143.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | ruby-doc | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby-doc | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 8 | ruby-irb | Advisory build | 2.5.9-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | ruby-libs | Advisory build | 2.5.9-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | ruby-libs | Advisory build | 3.0.7-143.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | ruby-libs | Advisory build | 3.1.5-143.module_el8.10.0+3854+02eaa59a | ALSA-2024:3546 |
| AlmaLinux | 8 | ruby-libs | Advisory build | 3.3.1-2.module_el8.10.0+3855+767cb125 | ALSA-2024:3670 |
| AlmaLinux | 8 | rubygem-abrt | Advisory build | 0.3.0-4.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | rubygem-abrt | Advisory build | 0.4.0-1.module_el8.10.0+3799+191214cc | ALSA-2024:3670 |
| AlmaLinux | 8 | rubygem-abrt | Advisory build | 0.4.0-1.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | rubygem-abrt | Advisory build | 0.4.0-1.module_el8.9.0+3746+91b8233a | ALSA-2024:3546 |
| AlmaLinux | 8 | rubygem-abrt-doc | Advisory build | 0.3.0-4.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
| AlmaLinux | 8 | rubygem-abrt-doc | Advisory build | 0.4.0-1.module_el8.10.0+3799+191214cc | ALSA-2024:3670 |
| AlmaLinux | 8 | rubygem-abrt-doc | Advisory build | 0.4.0-1.module_el8.10.0+3852+ce828b19 | ALSA-2024:3500 |
| AlmaLinux | 8 | rubygem-abrt-doc | Advisory build | 0.4.0-1.module_el8.9.0+3746+91b8233a | ALSA-2024:3546 |
| AlmaLinux | 8 | rubygem-bigdecimal | Advisory build | 1.3.4-112.module_el8.10.0+3871+342e2c2f | ALSA-2024:4499 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| ruby-lang | ruby | 3.0.3 through 3.0.6 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- n/a
- CWE-120 CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
9- http://seclists.org/fulldisclosure/2025/Sep/53
- http://seclists.org/fulldisclosure/2025/Sep/54
- http://seclists.org/fulldisclosure/2025/Sep/55
- https://hackerone.com/reports/1399856
- https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/
- https://lists.fedoraproject.org/archives/list/[email protected]/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/
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 28a6c8b65b829b9cd13a3d562b0c40a4b3970b987601061433f2de8588cd541f
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record