cve.bz

CVE-2024-27282 Out-of-bounds Read

6.6 mediumEPSS 0.7%

Medium (6.6). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-07-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27282 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27282?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27282?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27282 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u2DLA-3858-1
Debian12ruby3.13.1.2-7+deb12u1DEBIAN-CVE-2024-27282 DSA-5677-1
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2024-27282
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.13UBUNTU-CVE-2024-27282 USN-6838-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.6UBUNTU-CVE-2024-27282 USN-6838-1 USN-7734-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.1UBUNTU-CVE-2024-27282 USN-6838-1 USN-7734-1
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2024-27282
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm5UBUNTU-CVE-2024-27282 USN-7734-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm1USN-7734-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.5-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.1-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.7-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2024:3670
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21470+43ec8058RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-143.module+el8.10.0+21792+e2f63d26RHSA-2024:3546
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-2.module+el8.10.0+21860+47fbda2aRHSA-2024:3670
130 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.5-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.1-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.7-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:3670
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal1.3.4-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-bigdecimal3.0.0-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-bigdecimal3.1.1-143.module_el8.10.0+3854+02eaa59aALSA-2024:3546
AlmaLinux8rubygem-bigdecimal3.1.5-2.module_el8.10.0+3855+767cb125ALSA-2024:3670
133 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:2.5.9-112.module+el8.10.0+1839+f1f156aeRLSA-2024:4499
Rocky Linux8ruby0:3.3.1-2.module+el8.10.0+1827+16ecb9d2RLSA-2024:3670
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2024:4499
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:3670

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The CVE-2024-27282 vulnerability in Ruby is classified as a Moderate severity issue due to its potential to expose arbitrary heap data relative to the start of the text through the Ruby regex compiler. While the vulnerability allows the extraction of pointers and sensitive strings from memory, its exploitation requires attacker-supplied data to be provided to the regex compiler. This means that an attacker would need to craft specific input to exploit the issue, limiting the ease of exploitation compared to vulnerabilities that might be remotely exploitable without user interaction.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:3.0-8100020240522072634.489197e6Fixed 2024-05-30RHSA-2024:3500
Red Hat Enterprise Linux 8ruby:3.1-8100020240510101534.489197e6Fixed 2024-06-03RHSA-2024:3546
Red Hat Enterprise Linux 8ruby:3.3-8100020240522151542.489197e6Fixed 2024-06-06RHSA-2024:3670
Red Hat Enterprise Linux 8ruby:2.5-8100020240627152904.489197e6Fixed 2024-07-11RHSA-2024:4499
Red Hat Enterprise Linux 9ruby:3.1-9040020240503183840.9Fixed 2024-06-06RHSA-2024:3668
Red Hat Enterprise Linux 9ruby:3.3-9040020240522171337.9Fixed 2024-06-06RHSA-2024:3671
Red Hat Enterprise Linux 9ruby-0:3.0.7-162.el9_4Fixed 2024-06-11RHSA-2024:3838
Red Hat Hardened Imagesruby3-3-main-3.3.10-23.1.hum1Fixed 2026-04-09RHSA-2026:7305
Red Hat Hardened Imagesruby3-4-main-3.4.8-31.1.hum1Fixed 2026-04-09RHSA-2026:7307
Red Hat Hardened Imagesruby4-0-main-4.0.0-33.3.hum1Fixed 2026-04-17RHSA-2026:8838
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Hardened ImagesrubyAffected
Red Hat Storage 3rubyOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-27282.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON