Loading
Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line. filepattern is passed directly to memcpy copying the path provided by the user into a staticly sized buffer without any length checks resulting in a stack-buffer overflow.
Use CWE-787, Att vendor hub and Xmill product page to widen CVE-2021-21813 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2022-26507, CVE-2021-21811 and CVE-2021-21828 for nearby disclosures in the same product family.