CVE-2021-38185

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-38185
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38185.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-38185
Downstream
Related
Published
2021-08-08T00:15:07Z
Modified
2025-11-16T11:33:45Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.

References

Affected packages

Git / cgit.git.savannah.gnu.org/cgit/cpio.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/cpio.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
dd96882877721703e19272fe25034560b794061b

Git / git.savannah.gnu.org/git/cpio.git

Affected ranges

Type
GIT
Repo
https://git.savannah.gnu.org/git/cpio.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected