CVE-2021-21814

Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line

High · published August 13, 2021

CVSS v3.0
7.8
EPSS
0%
Percentile
26.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
7.8 · HIGH
Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00344 · 26.8th percentile
Published
2021-08-13T22:39Z
EPSS history
Timeline
  • 13 AUG 22:39Z
    Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line
    cvelistv5