USN-6838-1

Source
https://ubuntu.com/security/notices/USN-6838-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6838-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-6838-1
Upstream
Related
Published
2024-06-17T14:24:17.958169Z
Modified
2025-10-13T04:37:33Z
Summary
ruby2.7, ruby3.0, ruby3.1, ruby3.2 vulnerabilities
Details

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

Affected packages

Ubuntu:20.04:LTS / ruby2.7

Package

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

Affected ranges

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

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

Ecosystem specific

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

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27281"
            },
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27282"
            }
        ],
        "ecosystem": "Ubuntu:20.04:LTS"
    }
}

Ubuntu:22.04:LTS / ruby3.0

Package

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

Affected ranges

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

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

Ecosystem specific

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

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27281"
            },
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27282"
            }
        ],
        "ecosystem": "Ubuntu:22.04:LTS"
    }
}

Ubuntu:24.04:LTS / ruby3.2

Package

Name
ruby3.2
Purl
pkg:deb/ubuntu/ruby3.2@3.2.3-1ubuntu0.24.04.1?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.1

Affected versions

3.*

3.2.3-1
3.2.3-1build2
3.2.3-1build3

Ecosystem specific

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

Database specific

{
    "cves_map": {
        "cves": [
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27281"
            },
            {
                "severity": [
                    {
                        "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L",
                        "type": "CVSS_V3"
                    },
                    {
                        "score": "medium",
                        "type": "Ubuntu"
                    }
                ],
                "id": "CVE-2024-27282"
            }
        ],
        "ecosystem": "Ubuntu:24.04:LTS"
    }
}