CVE-2024-27282 json
An issue was discovered in Ruby 3.x through 3.3.0.
published 2024-05-08 2 y ago modified 2026-06-17 4 mo ago also BIT-ruby-2024-27282 , BIT-ruby-min-2024-27282 , EUVD-2024-24519
- cvss
- 6.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
An issue was discovered in Ruby 3.x through 3.3.0. If attacker-supplied data is provided to the Ruby regex compiler, it is possible to extract arbitrary heap data relative to the start of the text, including pointers and sensitive strings. The fixed versions are 3.0.7, 3.1.5, 3.2.4, and 3.3.1.
Patch / fix
- bitnami ruby 3.1.5, 3.2.4, 3.3.1
- bitnami ruby-min 3.1.6, 3.2.6, 3.3.7
- ruby-lang ruby 3.0.7, 3.1.5, 3.2.4, 3.3.1
- ruby3.1 Debian 12 3.1.2-7+deb12u1
debian advisories DEBIAN-CVE-2024-27282
- ruby2.7 Ubuntu 20.04 LTS 2.7.0-5ubuntu1.13
- ruby3.0 Ubuntu 22.04 LTS 3.0.2-7ubuntu2.6
- ruby3.2 Ubuntu 24.04 LTS 3.2.3-1ubuntu0.24.04.1
- ruby2.5 Ubuntu Pro 18.04 LTS 2.5.1-1ubuntu1.16+esm5
ubuntu advisories UBUNTU-CVE-2024-27282
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ruby4.0 hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-libs hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-bundled-gems hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-default-gems hummingbird 1 4.0.0-33.3.hum1
- ruby3.3 hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-libs hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-bundled-gems hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-default-gems hummingbird 1 3.3.10-23.1.hum1
red hat advisories RHSA-2026:8838RHSA-2026:7305RHSA-2026:7307RHSA-2024:4499RHSA-2024:3838RHSA-2024:3671
- ruby AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
- ruby-irb AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
- rubygems AlmaLinux 8 2.7.6.3-112.module_el8.10.0+3871+342e2c2f
- ruby-libs AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
- rubygem-pg AlmaLinux 8 1.0.0-3.module_el8.9.0+3635+c6f99506
- rubygem-abrt AlmaLinux 8 0.3.0-4.module_el8.10.0+3871+342e2c2f
- rubygem-bson AlmaLinux 8 4.3.0-2.module_el8.5.0+2625+ec418553
- rubygem-bson AlmaLinux 8 4.3.0-2.module_el8.6.0+3170+4b08f9d4
almalinux advisories ALSA-2024:4499ALSA-2024:3838ALSA-2024:3668ALSA-2024:3670ALSA-2024:3671ALSA-2024:3546
- ruby Rocky Linux 8 2.5.9-112.module+el8.10.0+1839+f1f156ae
- rubygem-pg Rocky Linux 8 1.0.0-3.module+el8.9.0+1536+5f79634e
- rubygem-abrt Rocky Linux 8 0.3.0-4.module+el8.5.0+738+032c9c02
- rubygem-bson Rocky Linux 8 4.3.0-2.module+el8.9.0+1536+5f79634e
- rubygem-mongo Rocky Linux 8 2.5.1-2.module+el8.9.0+1536+5f79634e
- rubygem-mysql2 Rocky Linux 8 0.4.10-4.module+el8.9.0+1536+5f79634e
- rubygem-bundler Rocky Linux 8 1.16.1-4.module+el8.9.0+1536+5f79634e
- rubygem-pg Rocky Linux 9 1.3.5-1.module+el9.6.0+31865+0893c253
rocky linux advisories RLSA-2024:4499RLSA-2024:3668RLSA-2024:3671RLSA-2024:3546RLSA-2024:3670
- ruby Alpine 3.17, Alpine 3.16 3.1.5-r0
- ruby Alpine 3.19, Alpine 3.18 3.2.4-r0
- ruby Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 3.3.1-r0
alpine advisories ALPINE-CVE-2024-27282
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ruby Azure Linux 3.0 3.3.3-1
- ruby CBL-Mariner 2.0 3.1.4-5
azure linux advisories AZL-40520AZL-40733
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-27282 updated cvss 6.6
ruby: Arbitrary memory address read vulnerability with Regex search
-
Red Hat Enterprise Linux 6 ruby, ruby-ri, ruby-irb, ruby-libs, ruby-rdoc, ruby-tcltk Red Hat Enterprise Linux 7 ruby, ruby-irb, rubygems, ruby-libs, ruby-tcltk, rubygem-json, +6 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Hardened Images rubyaffected: workaround, no fix available
-
Red Hat Storage 3 ruby, ruby-irb, rubygems, ruby-libs, rubygem-json, rubygem-rake, +11 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) ruby 3.3.1-2.module+el8.10.0+21860+47fbda2a, ruby 2.5.9-112.module+el8.10.0+22021+135c76a8, ruby 3.0.7-143.module+el8.10.0+21858+d19f3934, ruby 3.1.5-143.module+el8.10.0+21792+e2f63d26, rubygems 3.5.9-2.module+el8.10.0+21860+47fbda2a, ruby-libs 3.3.1-2.module+el8.10.0+21860+47fbda2a, +86 morefixed: vendor fix RHSA-2024:4499
-
Red Hat Enterprise Linux AppStream (v. 9) ruby 3.0.7-162.el9_4, ruby-libs 3.0.7-162.el9_4, rubygems 3.2.33-162.el9_4, rubygem-irb 1.3.5-162.el9_4, rubygem-rbs 1.4.0-162.el9_4, rubygem-rss 0.2.9-162.el9_4, +58 more Red Hat Enterprise Linux CRB (v. 9) ruby-doc 3.0.7-162.el9_4fixed: vendor fix RHSA-2024:3838
-
Red Hat Hardened Images ruby3.4 3.4.8-31.1.hum1, ruby4.0 4.0.0-33.3.hum1, ruby3.3 3.3.10-23.1.hum1, ruby3.4-libs 3.4.8-31.1.hum1, ruby4.0-libs 4.0.0-33.3.hum1, ruby3.3-libs 3.3.10-23.1.hum1, +6 morefixed: vendor fix RHSA-2026:7305
-
Red Hat Enterprise Linux 10 ruby Red Hat Hardened Images rubygem3.3-rbs 3.4.0-23.1.hum1, rubygem3.3-rss 0.3.1-23.1.hum1, rubygem3.4-rbs 3.8.0-31.1.hum1, rubygem3.4-rss 0.3.1-31.1.hum1, rubygem4.0-rss 0.3.2-33.3.hum1, rubygem3.3-irb 1.13.1-23.1.hum1, +45 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.66% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| CNA | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| OSV | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | ruby | <3.1.5 >=3.2.0, <3.2.4 >=3.3.0, <3.3.1 |
3.1.5 3.2.4 3.3.1 |
| bitnami | ruby-min | <3.1.6 >=3.2.0, <3.2.6 >=3.3.0, <3.3.7 |
3.1.6 3.2.6 3.3.7 |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
hackerone.com
/reports/2122624
web
-
ruby-lang.org
/en/news/2024/04/23/arbitrary-memory-address-read-regexp-cve-2024-27282/
web
-
security.netapp.com
/advisory/ntap-20241011-0007/
web
-
lists.debian.org
/debian-lts-announce/2024/09/msg00000.html
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-27282
web
Sources
- CVE List CVE-2024-27282
- NVD CVE-2024-27282
- OSV BIT-ruby-2024-27282
- OSV BIT-ruby-min-2024-27282
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.