USN-7418-1

Type: Security
Severity: Medium
Published: 2025-04-07
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 24.04 LTS (Noble Numbat)

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) Update Instructions: Run `sudo pro fix USN-7418-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: libruby2.7 - 2.7.0-5ubuntu1.18 ruby2.7 - 2.7.0-5ubuntu1.18 ruby2.7-dev - 2.7.0-5ubuntu1.18 ruby2.7-doc - 2.7.0-5ubuntu1.18 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T04:50:43.236Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T04:50:43.236Z UTC. Last updated 2025-11-26T08:47:25.139Z UTC.

Upstream Advisory

Affected Packages

  • libruby2.7 2.7.0-5ubuntu1.18-2.7.0-5ubuntu1.18

  • ruby2.7 2.7.0-5ubuntu1.18-2.7.0-5ubuntu1.18

  • ruby2.7-dev 2.7.0-5ubuntu1.18-2.7.0-5ubuntu1.18

  • ruby2.7-doc 2.7.0-5ubuntu1.18-2.7.0-5ubuntu1.18

  • libruby3.0 3.0.2-7ubuntu2.10-3.0.2-7ubuntu2.10

  • ruby3.0 3.0.2-7ubuntu2.10-3.0.2-7ubuntu2.10

  • ruby3.0-dev 3.0.2-7ubuntu2.10-3.0.2-7ubuntu2.10

  • ruby3.0-doc 3.0.2-7ubuntu2.10-3.0.2-7ubuntu2.10

  • libruby3.2 3.2.3-1ubuntu0.24.04.5-3.2.3-1ubuntu0.24.04.5

  • ruby3.2 3.2.3-1ubuntu0.24.04.5-3.2.3-1ubuntu0.24.04.5

  • ruby3.2-dev 3.2.3-1ubuntu0.24.04.5-3.2.3-1ubuntu0.24.04.5

  • ruby3.2-doc 3.2.3-1ubuntu0.24.04.5-3.2.3-1ubuntu0.24.04.5

Interested in being alerted when there are new versions of libruby2.7 and the other packages? Set up an alert.
USN-7418-1: Ruby vulnerabilities | Package Alert