QID 356181

Date Published: 2023-10-05

QID 356181: Amazon Linux Security Advisory for ruby : ALASRUBY3.0-2023-003

Cgi.escape_html 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 size_t and long have different numbers of bytes.
This also affects the cgi gem before 0.3.1 for ruby. (
( CVE-2021-41816) a flaw was found in ruby, where the date object was found to be vulnerable to a regular expression denial of service (redos) during the parsing of dates.
This flaw allows an attacker to hang a ruby application by providing a specially crafted date string.
The highest threat to this vulnerability is system availability. (
( CVE-2021-41817) cgi::cookie.parse in ruby through 2.6.8 mishandles security prefixes in cookie names.
This also affects the cgi gem through 0.3.0 for ruby. (
( CVE-2021-41819)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Please refer to Amazon advisory: ALASRUBY3.0-2023-003 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356181

    Software Advisories
    Advisory ID Software Component Link
    ALASRUBY3.0-2023-003 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASRUBY3.0-2023-003.html