PT-2021-7822 · Xmill · Xmill
Carl Hurd
·
Published
2021-08-10
·
Updated
2024-08-03
·
CVE-2021-21812
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Xmill version 0.7
Description
A stack-based buffer overflow issue exists in the command-line-parsing HandleFileArg functionality. The
filepattern argument, which is under user control, is passed to strcpy without length checks, leading to a stack-buffer overflow. This can be triggered by providing malicious input. The vulnerability is related to an error in memory boundary handling when processing XML files, which could allow an attacker to execute arbitrary code.Recommendations
For Xmill version 0.7, as a temporary workaround, consider disabling the
HandleFileArg function until a patch is available. Restrict access to the command-line-parsing functionality to minimize the risk of exploitation. Avoid using user-provided input for the filepattern argument in the affected functionality until the issue is resolved.Exploit
Fix
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Xmill