QID 355140

Date Published: 2023-05-29

QID 355140: Amazon Linux Security Advisory for cpio : ALAS2023-2023-021

Gnu cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write.
Note: it is unclear whether there are common cases where the pattern file, associated with the -e option, is untrusted data. (
( CVE-2021-38185)



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 High - 6.8 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-021 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355140

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-021 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-021.html