CVE-2024-35176: ruby2.7, ruby3.0, ruby3.2, ruby3.3 vulnerabilities
Affects ruby2.7Source GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 5.3 Medium · fixed in 2.7.0-5ubuntu1.18 : update ruby2.7 when convenient.
Data as of 24 Nov 2026, 17:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 2.7.0-5ubuntu1.18, 3.0.2-7ubuntu2.10, 3.2.3-1ubuntu0.24.04.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 16 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 23 Nov 2026.
What to do
Upgrade the Ubuntu to 2.7.0-5ubuntu1.18 (ruby2.7 package) or 3.0.2-7ubuntu2.10 (ruby3.0 package) or 3.2.3-1ubuntu0.24.04.5 (ruby3.2 package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSruby3.2pkg:deb/ubuntu/ruby3.2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSruby3.0pkg:deb/ubuntu/ruby3.0?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSruby2.7pkg:deb/ubuntu/ruby2.7?arch=source&distro=focalOther threats | Affected
| Fixed in
|
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 incorrectly handled parsing of an XML document that has specific XML characters in an attribute value using REXML gem. An attacker could use this issue to cause Ruby to crash, resulting in a denial of service. This issue only affected in Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 24.10. (CVE-2024-35176, CVE-2024-39908, CVE-2024-41123, CVE-2024-43398) It was discovered that Ruby incorrectly handled expanding ranges in the net-imap response parser. If a user or automated system were tricked into connecting to a malicious IMAP server, a remote attacker could possibly use this issue to consume memory, leading to a denial of service. This issue only affected Ubuntu 24.04 LTS, and Ubuntu 24.10. (CVE-2025-25186) It was discovered that the Ruby CGI gem incorrectly handled parsing certain cookies. A remote attacker could possibly use this issue to consume resources, leading to a denial of service. (CVE-2025-27219) It was discovered that the Ruby CGI gem incorrectly handled parsing certain regular expressions. A remote attacker could possibly use this issue to consume resources, leading to a denial of service. (CVE-2025-27220) It was discovered that the Ruby URI gem incorrectly handled certain URI handling methods. A remote attacker could possibly use this issue to leak authentication credentials. (CVE-2025-27221)
References
- ubuntu.com/security/notices/USN-7418-1 (opens in a new tab)
- ubuntu.com/security/CVE-2024-35176 (opens in a new tab)
- ubuntu.com/security/CVE-2024-39908 (opens in a new tab)
- ubuntu.com/security/CVE-2024-41123 (opens in a new tab)
- ubuntu.com/security/CVE-2024-43398 (opens in a new tab)
- ubuntu.com/security/CVE-2025-25186 (opens in a new tab)
- ubuntu.com/security/CVE-2025-27219 (opens in a new tab)
- ubuntu.com/security/CVE-2025-27220 (opens in a new tab)
- ubuntu.com/security/CVE-2025-27221 (opens in a new tab)