QID 353180

Date Published: 2022-03-07

QID 353180: Amazon Linux Security Advisory for zsh : ALAS2-2022-1757

A vulnerability was found in zsh in the parsecolorchar() function of prompt.c file.
This flaw allows an attacker to perform code execution if they control a command output inside the prompt, as stated by a %f%k argument.
This occurs because of recursive prompt_subst expansion. (
( CVE-2021-45444)



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.8 severity.
  • CVSS V2 rated as Medium - 5.1 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2-2022-1757 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 353180

    Software Advisories
    Advisory ID Software Component Link
    ALAS2-2022-1757 Amazon Linux 2 URL Logo alas.aws.amazon.com/AL2/ALAS-2022-1757.html