# CVE-2021-21814: 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.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-13T22:39:59.000Z
- Modified: 2026-06-17T03:36:10.000Z
- Weaknesses: CWE-88
- 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 strlen to determine the ending location of the char* passed in by the user, no checks are done to see if the passed in char* is longer than the staticly sized buffer data is memcpy‘d into, but after the memcpy a null byte is written to what is assumed to be the end of the buffer to terminate the char*, but without length checks, this null write occurs at an arbitrary offset from the buffer. An attacker can provide malicious input to trigger this vulnerability.

(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-21814](https://www.cve.org/CVERecord?id=CVE-2021-21814), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21814](https://nvd.nist.gov/vuln/detail/CVE-2021-21814), Public domain, modified 2026-06-17

---

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