CVE-2024-27282: Medium severity redhat/ruby vulnerability

Published Apr 24, 2024
·
Updated

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.

https://www.ruby-lang.org/en/news/2024/04/23/arbitrary-memory-address-read-regexp-cve-2024-27282/

Other sources

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.

Launchpad

Affected Software

6 affected componentsFixes available
redhat/ruby<3.3.1
3.3.1
redhat/ruby<3.0.7
3.0.7
redhat/ruby<3.1.5
3.1.5
redhat/ruby<3.2.4
3.2.4
debian/ruby2.7<=2.7.4-1+deb11u1
2.7.4-1+deb11u5
debian/ruby3.1
3.1.2-7+deb12u13.1.2-8.5

Event History

May 8, 2024
CVE Published
via MITRE·08:40 PM
Data Sourced
via MITRE·08:40 PM
Description
May 14, 2024
Data Sourced
via NVD·03:11 PM
DescriptionSeverityWeakness
Jun 19, 2024
Data Sourced
via Launchpad·12:12 PM
Description
Sep 15, 2024
Data Sourced
via Ubuntu·12:23 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27282?

CVE-2024-27282 is considered a high severity vulnerability due to the potential for sensitive data extraction.

2

How do I fix CVE-2024-27282?

To mitigate CVE-2024-27282, upgrade Ruby to version 3.3.1, 3.1.5, 3.2.4, or apply the respective patches for earlier versions.

3

What versions of Ruby are affected by CVE-2024-27282?

CVE-2024-27282 affects Ruby versions 3.0.0 up to and including 3.3.0, as well as earlier versions like 2.7.4.

4

What kind of exploit does CVE-2024-27282 allow?

CVE-2024-27282 allows attackers to extract arbitrary heap data from Ruby's regex compiler, which could potentially include sensitive information.

5

Is CVE-2024-27282 a remote or local vulnerability?

CVE-2024-27282 is classified as a local vulnerability because it requires attacker-supplied data to trigger the exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203