CVE-2021-21814

State
Published
Severity
7.8 High
Published
Aug 13, 2021
Updated
Aug 3, 2024
Reserved
Jan 4, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.07.8 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Htalos

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
AT&Tn/a
  • AT&T Labs Xmill 0.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.