9.8

CVE-2024-27280: ruby-3.1 Classic Buffer Overflow

CVSS: 9.8v3.1CriticalDeferred
AliasesALPINE-CVE-2024-27280UBUNTU-CVE-2024-27280USN-6853-1
Published 08-05-2024Last modified 04-11-2025

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
2.36%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 11 · Related 4

Timeline

  1. 08-05-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last 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

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

19-09-202619-10-2026
EPSS score
2.36%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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 links
Show all 24 references