9.8

CVE-2024-27280: ruby-3.1

Deferred
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) vulnerability in ruby-3.1. EPSS estimates a 2.36% chance of exploitation in the next 30 days, higher than 84.3% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
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 listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

No change 0.00 pp

From 2.36% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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