cve.bz

CVE-2024-27280 Classic Buffer Overflow

9.8 criticalEPSS 2.4%Fix available

Critical (9.8). EPSS 2.4% estimated probability of exploitation activity in the next 30 days. Fixed in stringio 3.0.1.1.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-05-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27280 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27280?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27280?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27280 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v5h6-c2hv-hv3rRubyGemsstringio<3.0.1.13.0.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u2DLA-3858-1
Debian12ruby3.13.1.2-7+deb12u1DEBIAN-CVE-2024-27280 DSA-5677-1
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.14UBUNTU-CVE-2024-27280 USN-6853-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.7UBUNTU-CVE-2024-27280 USN-6853-1 USN-7734-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.6USN-7734-1
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2024-27280
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm5UBUNTU-CVE-2024-27280 USN-7734-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm1USN-7734-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.5-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.1-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.7-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2024:3670
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21470+43ec8058RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
127 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.5-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.1-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.7-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:3670
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal1.3.4-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-bigdecimal3.0.0-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-bigdecimal3.1.1-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal3.1.5-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
133 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:2.5.9-112.module+el8.10.0+1839+f1f156aeRLSA-2024:4499
Rocky Linux8ruby0:3.3.1-2.module+el8.10.0+1827+16ecb9d2RLSA-2024:3670
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2024:4499
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:3670
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-bundler0:1.16.1-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:3.0-8100020240522072634.489197e6Fixed 2024-05-30RHSA-2024:3500
Red Hat Enterprise Linux 8ruby:3.1-8100020240510101534.489197e6Fixed 2024-06-03RHSA-2024:3546
Red Hat Enterprise Linux 8ruby:3.3-8100020240522151542.489197e6Fixed 2024-06-06RHSA-2024:3670
Red Hat Enterprise Linux 8ruby:2.5-8100020240627152904.489197e6Fixed 2024-07-11RHSA-2024:4499
Red Hat Enterprise Linux 9ruby:3.1-9040020240503183840.9Fixed 2024-06-06RHSA-2024:3668
Red Hat Enterprise Linux 9ruby:3.3-9040020240522171337.9Fixed 2024-06-06RHSA-2024:3671
Red Hat Enterprise Linux 9ruby-0:3.0.7-162.el9_4Fixed 2024-06-11RHSA-2024:3838
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat OpenStack Platform 16.2puppet-memcachedNot affected
Red Hat OpenStack Platform 17.1puppet-memcachedNot affected
Red Hat Satellite 6satellite-installerNot affected
Red Hat Storage 3rubyOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-27280.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON