USN-7418-1

Source
https://ubuntu.com/security/notices/USN-7418-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7418-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-7418-1
Related
Published
2025-04-07T13:55:18.416862Z
Modified
2025-04-07T13:55:18.416862Z
Summary
ruby2.7, ruby3.0, ruby3.2, ruby3.3 vulnerabilities
Details

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

Affected packages

Ubuntu:20.04:LTS / ruby2.7

Package

Name
ruby2.7
Purl
pkg:deb/ubuntu/ruby2.7@2.7.0-5ubuntu1.18?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.0-5ubuntu1.18

Affected versions

2.*

2.7.0-1
2.7.0-2
2.7.0-3
2.7.0-4
2.7.0-4ubuntu1
2.7.0-5ubuntu1
2.7.0-5ubuntu1.1
2.7.0-5ubuntu1.2
2.7.0-5ubuntu1.3
2.7.0-5ubuntu1.4
2.7.0-5ubuntu1.5
2.7.0-5ubuntu1.6
2.7.0-5ubuntu1.7
2.7.0-5ubuntu1.8
2.7.0-5ubuntu1.9
2.7.0-5ubuntu1.10
2.7.0-5ubuntu1.11
2.7.0-5ubuntu1.12
2.7.0-5ubuntu1.13
2.7.0-5ubuntu1.14
2.7.0-5ubuntu1.15
2.7.0-5ubuntu1.16
2.7.0-5ubuntu1.17

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "libruby2.7"
        },
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "libruby2.7-dbgsym"
        },
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "ruby2.7"
        },
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "ruby2.7-dbgsym"
        },
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "ruby2.7-dev"
        },
        {
            "binary_version": "2.7.0-5ubuntu1.18",
            "binary_name": "ruby2.7-doc"
        }
    ]
}

Ubuntu:22.04:LTS / ruby3.0

Package

Name
ruby3.0
Purl
pkg:deb/ubuntu/ruby3.0@3.0.2-7ubuntu2.10?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.2-7ubuntu2.10

Affected versions

3.*

3.0.2-5ubuntu1
3.0.2-7
3.0.2-7ubuntu2
3.0.2-7ubuntu2.1
3.0.2-7ubuntu2.2
3.0.2-7ubuntu2.3
3.0.2-7ubuntu2.4
3.0.2-7ubuntu2.5
3.0.2-7ubuntu2.6
3.0.2-7ubuntu2.7
3.0.2-7ubuntu2.8

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "libruby3.0"
        },
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "libruby3.0-dbgsym"
        },
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "ruby3.0"
        },
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "ruby3.0-dbgsym"
        },
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "ruby3.0-dev"
        },
        {
            "binary_version": "3.0.2-7ubuntu2.10",
            "binary_name": "ruby3.0-doc"
        }
    ]
}

Ubuntu:24.10 / ruby3.3

Package

Name
ruby3.3
Purl
pkg:deb/ubuntu/ruby3.3@3.3.4-2ubuntu5.2?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.3.4-2ubuntu5.2

Affected versions

3.*

3.3.1-3
3.3.1-4
3.3.1-5
3.3.1-6
3.3.4-1
3.3.4-2
3.3.4-2ubuntu5
3.3.4-2ubuntu5.1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "libruby3.3"
        },
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "libruby3.3-dbgsym"
        },
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "ruby3.3"
        },
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "ruby3.3-dbgsym"
        },
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "ruby3.3-dev"
        },
        {
            "binary_version": "3.3.4-2ubuntu5.2",
            "binary_name": "ruby3.3-doc"
        }
    ]
}

Ubuntu:24.04:LTS / ruby3.2

Package

Name
ruby3.2
Purl
pkg:deb/ubuntu/ruby3.2@3.2.3-1ubuntu0.24.04.5?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.3-1ubuntu0.24.04.5

Affected versions

3.*

3.2.3-1
3.2.3-1build2
3.2.3-1build3
3.2.3-1ubuntu0.24.04.1
3.2.3-1ubuntu0.24.04.3

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "libruby3.2"
        },
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "libruby3.2-dbgsym"
        },
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "ruby3.2"
        },
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "ruby3.2-dbgsym"
        },
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "ruby3.2-dev"
        },
        {
            "binary_version": "3.2.3-1ubuntu0.24.04.5",
            "binary_name": "ruby3.2-doc"
        }
    ]
}