CVE-2024-27280

EUVD-2024-1008
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.
Classic Buffer Overflow
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 92%
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
ruby-langruby
3.0.3 ≤
𝑥
≤ 3.0.6
ADP
Debian logo
Debian Releases
Debian Product
Codename
ruby2.7
bullseye
vulnerable
bullseye (security)
2.7.4-1+deb11u5
fixed
ruby3.1
bookworm
3.1.2-7+deb12u1
fixed
bookworm (security)
3.1.2-7+deb12u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby2.3
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
xenial
needs-triage
ruby2.5
bionic
Fixed 2.5.1-1ubuntu1.16+esm5
released
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
ruby2.7
focal
Fixed 2.7.0-5ubuntu1.14
released
jammy
dne
mantic
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
ruby3.0
focal
dne
jammy
Fixed 3.0.2-7ubuntu2.7
released
mantic
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
ruby3.1
focal
dne
jammy
dne
mantic
Fixed 3.1.2-7ubuntu3.3
released
noble
dne
oracular
dne
plucky
dne
questing
dne
ruby3.2
bionic
dne
focal
dne
jammy
dne
mantic
dne
noble
not-affected
oracular
dne
plucky
dne
questing
dne
trusty
dne
xenial
dne
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
ruby
RHEL 9
0:3.0.7-162.el9_4
fixed
ruby-default-gems
RHEL 9
0:3.0.7-162.el9_4
fixed
ruby-devel
RHEL 9
0:3.0.7-162.el9_4
fixed
ruby-doc
RHEL 9
0:3.0.7-162.el9_4
fixed
ruby-libs
RHEL 9
0:3.0.7-162.el9_4
fixed
rubygem-bigdecimal
RHEL 9
0:3.0.0-162.el9_4
fixed
rubygem-bundler
RHEL 9
0:2.2.33-162.el9_4
fixed
rubygem-io-console
RHEL 9
0:0.5.7-162.el9_4
fixed
rubygem-irb
RHEL 9
0:1.3.5-162.el9_4
fixed
rubygem-json
RHEL 9
0:2.5.1-162.el9_4
fixed
rubygem-minitest
RHEL 9
0:5.14.2-162.el9_4
fixed
rubygem-power
RHEL 9
0:1.2.1-162.el9_4
fixed
rubygem-psych
RHEL 9
0:3.3.2-162.el9_4
fixed
rubygem-rake
RHEL 9
0:13.0.3-162.el9_4
fixed
rubygem-rbs
RHEL 9
0:1.4.0-162.el9_4
fixed
rubygem-rdoc
RHEL 9
0:6.3.4.1-162.el9_4
fixed
rubygem-rexml
RHEL 9
0:3.2.5-162.el9_4
fixed
rubygem-rss
RHEL 9
0:0.2.9-162.el9_4
fixed
rubygem-test-unit
RHEL 9
0:3.3.7-162.el9_4
fixed
rubygem-typeprof
RHEL 9
0:0.15.2-162.el9_4
fixed
rubygems
RHEL 9
0:3.2.33-162.el9_4
fixed
rubygems-devel
RHEL 9
0:3.2.33-162.el9_4
fixed