# CVE-2021-21813: Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line.

- Severity: High 7.8 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-13T22:40:18.000Z
- Modified: 2026-06-17T03:36:09.893Z
- Weaknesses: CWE-787
- Assigned by: talos

## Description

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.

(As written by CVE List.)

## Affected

- AT&T: AT&T Labs Xmill 0.7
- att xmill: 0.7

## Every score

- talos: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1280> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-21813](https://www.cve.org/CVERecord?id=CVE-2021-21813), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21813](https://nvd.nist.gov/vuln/detail/CVE-2021-21813), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21813 · Whole record: https://cve.day/CVE-2021-21813.json · Rebuilt by cve.day 2026-11-25T22:58:03.235Z
