QID 356212

Date Published: 2023-09-28

QID 356212: Amazon Linux Security Advisory for ruby : ALASRUBY2.6-2023-005

An operating system command injection flaw was found in rdoc.
Using the rdoc command to generate documentation for a malicious ruby source code could lead to execution of arbitrary commands with the privileges of the user running rdoc. (
( CVE-2021-31799)



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 High - 7 severity.
  • CVSS V2 rated as Medium - 4.4 severity.
  • Solution
    Please refer to Amazon advisory: ALASRUBY2.6-2023-005 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356212

    Software Advisories
    Advisory ID Software Component Link
    ALASRUBY2.6-2023-005 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASRUBY2.6-2023-005.html