UBUNTU-CVE-2021-41816

Source
https://ubuntu.com/security/CVE-2021-41816
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41816.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-41816
Related
Published
2021-12-02T00:00:00Z
Modified
2021-12-02T00:00:00Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

CGI.escapehtml in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where sizet and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.

References

Affected packages

Ubuntu:20.04:LTS / ruby2.7

Package

Name
ruby2.7
Purl
pkg:deb/ubuntu/ruby2.7?arch=src?distro=focal

Affected ranges

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

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

Ecosystem specific

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

Ubuntu:22.04:LTS / ruby3.0

Package

Name
ruby3.0
Purl
pkg:deb/ubuntu/ruby3.0?arch=src?distro=jammy

Affected ranges

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

Affected versions

3.*

3.0.2-5ubuntu1
3.0.2-7

Ecosystem specific

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