CVE-2024-27282: ruby · Out-of-bounds Read
Affects rubySource CVE Database V5
Not known to be exploited · CVSS 6.6 Medium · fixed in 3.3.1 : update ruby when convenient.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.3.1, 3.2.4, 3.1.5 +1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 8 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade ruby to 3.3.1, 3.2.4, 3.1.5 or 3.0.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
RubyGemsrubypkg:gem/rubyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade Ruby installations to the fixed versions: 3.0.7, 3.1.5, 3.2.4, or 3.3.1, depending on their current version. Where immediate patching is not feasible, restrict access to systems running vulnerable Ruby versions to trusted users only and monitor for unusual regex compilation activities or anomalous user input patterns. Implement input validation and sanitization to limit attacker-controlled data reaching the regex compiler. Employ runtime application self-protection (RASP) or memory protection tools to detect and prevent out-of-bounds memory reads. Conduct code reviews and security testing focused on regex usage in applications. Additionally, audit logs for suspicious user interactions that could indicate exploitation attempts. For critical systems, consider isolating Ruby processes or running them with minimal privileges to reduce the attack surface. Finally, maintain an up-to-date inventory of Ruby versions in use across the organization to ensure comprehensive remediation.
Description
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.
References
- hackerone.com/reports/2122624 (opens in a new tab)
- ruby-lang.org/en/news/2024/04/23/arbitrary-memory-address-read-regexp-cve-2024-27282/ (opens in a new tab)
- security.netapp.com/advisory/ntap-20241011-0007/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/09/msg00000.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/ (opens in a new tab)