Skip to main content
VulnerabilityPublished Updated

CVE-2024-27281: ruby2.7, ruby3.0, ruby3.1, ruby3.2 vulnerabilities

Affects ruby2.7Source GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2024-27281· Medium 4.5

Not known to be exploited · CVSS 4.5 Medium · fixed in 2.7.0-5ubuntu1.13 : update ruby2.7 when convenient.

Data as of 24 Nov 2026, 17:24 UTC

CVSS 3.1 base score
4.5Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.7.0-5ubuntu1.13, 3.0.2-7ubuntu2.6, 3.2.3-1ubuntu0.24.04.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 23 Nov 2026.

What to do

Upgrade the Ubuntu to 2.7.0-5ubuntu1.13 (ruby2.7 package) or 3.0.2-7ubuntu2.6 (ruby3.0 package) or 3.2.3-1ubuntu0.24.04.1 (ruby3.2 package).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSruby3.2pkg:deb/ubuntu/ruby3.2?arch=source&distro=nobleOther threatsAffected
  • <3.2.3-1ubuntu0.24.04.1
Fixed in
  • 3.2.3-1ubuntu0.24.04.1
Ubuntu 22.04 LTSruby3.0pkg:deb/ubuntu/ruby3.0?arch=source&distro=jammyOther threatsAffected
  • <3.0.2-7ubuntu2.6
Fixed in
  • 3.0.2-7ubuntu2.6
Ubuntu 20.04 LTSruby2.7pkg:deb/ubuntu/ruby2.7?arch=source&distro=focalOther threatsAffected
  • <2.7.0-5ubuntu1.13
Fixed in
  • 2.7.0-5ubuntu1.13

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

It was discovered that Ruby RDoc incorrectly parsed certain YAML files. If a user or automated system were tricked into parsing a specially crafted .rdoc_options file, a remote attacker could possibly use this issue to execute arbitrary code. (CVE-2024-27281) It was discovered that the Ruby regex compiler incorrectly handled certain memory operations. A remote attacker could possibly use this issue to obtain sensitive memory contents. (CVE-2024-27282)

References

Community reviews

Loading reviews…