CVE-2024-27280: ruby-3.1 Classic Buffer Overflow
Vulnerability summary
CVE-2024-27280 is a critical (CVSS 9.8) Classic Buffer Overflow vulnerability in ruby-3.1. EPSS estimates a 2.36% chance of exploitation in the next 30 days, higher than 83.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 11 · Related 4Timeline
- 08-05-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
11 scores · 8 sources · 2 versions- OSV · ChainguardEcosystem advisory · calculated9.3CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · RubygemsEcosystem advisory · calculated9.3CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · RubygemsEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.36%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
0.00 pp
From 2.36% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu4 products
- ruby2.3All versions (No fix recorded)
- ruby2.5< 2.5.1-1ubuntu1.16+esm5
- ruby2.7< 2.7.0-5ubuntu1.14
- ruby3.0< 3.0.2-7ubuntu2.7
Alpine1 product
- ruby< 3.1.5-r0 | < 3.2.4-r0 | < 3.3.1-r0
Chainguard1 product
- ruby-3.1< 3.1.4-r6
Debian1 product
- ruby3.1< 3.1.2-7+deb12u1
RubyGems1 product
- stringio< 3.0.1.1
Wolfi1 product
- ruby-3.1< 3.1.4-r6
6 vendors · 9 products
References
24 linksShow all 24 references
- github.com/ruby/stringioPACKAGE