PT-2024-3335 · Ruby+7 · Ruby+7

Sp2Ip

·

Published

2024-04-23

·

Updated

2025-09-03

·

CVE-2024-27282

CVSS v3.1

6.6

Medium

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
Name of the Vulnerable Software and Affected Versions Ruby versions 3.0.0 through 3.3.0
Description The issue is related to a buffer overflow in the heap of the Ruby programming language interpreter. It allows an attacker to impact the confidentiality, integrity, and availability of protected information. 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.
Recommendations For Ruby versions 3.0.0 through 3.0.6, update to version 3.0.7. For Ruby versions 3.1.0 through 3.1.4, update to version 3.1.5. For Ruby versions 3.2.0 through 3.2.3, update to version 3.2.4. For Ruby versions 3.3.0, update to version 3.3.1. As a temporary workaround, consider restricting the use of the Ruby regex compiler with attacker-supplied data until a patch is applied.

Fix

Out of bounds Read

Heap Based Buffer Overflow

Weakness Enumeration

Related Identifiers

ALSA-2024:3500
ALSA-2024:3546
ALSA-2024:3668
ALSA-2024:3670
ALSA-2024:3671
ALSA-2024:3838
ALSA-2024:4499
AZL-40520
AZL-40733
BDU:2024-03599
BIT-RUBY-2024-27282
BIT-RUBY-MIN-2024-27282
CESA-2024_3500
CESA-2024_3546
CESA-2024_3670
CESA-2024_4499
CVE-2024-27282
DLA-3858-1
DSA-5677-1
INFSA-2024_3500
INFSA-2024_3546
INFSA-2024_3668
INFSA-2024_3670
INFSA-2024_3671
INFSA-2024_3838
INFSA-2024_4499
MGASA-2024-0160
OESA-2024-1545
OESA-2024-1607
OESA-2024-1608
OESA-2024-1609
OESA-2024-1610
OESA-2024-1611
RHSA-2024:3500
RHSA-2024:3546
RHSA-2024:3668
RHSA-2024:3670
RHSA-2024:3671
RHSA-2024:3838
RHSA-2024:4499
RHSA-2024_3500
RHSA-2024_3546
RHSA-2024_3668
RHSA-2024_3670
RHSA-2024_3671
RHSA-2024_3838
RHSA-2024_4499
RHSA-2026:7305
RHSA-2026:7307
RHSA-2026:8838
RLSA-2024:3546
RLSA-2024:3668
RLSA-2024:3670
RLSA-2024:3671
RLSA-2024:4499
USN-6838-1
USN-7734-1

Affected Products

Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Rocky Linux
Ruby
Ubuntu