Vulnerability record · CVE-2021-38185 · published 8 August 2021
CVE-2021-38185: Gnu cpio integer overflow vulnerability
Gnu · Cpio
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.
Description
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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b | PatchThird Party Advisory |
| https://github.com/fangqyi/cpiopwn | ExploitThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html | |
| https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html | ExploitMailing ListVendor Advisory |
| https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html | ExploitMailing ListVendor Advisory |
| https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b | PatchThird Party Advisory |
| https://github.com/fangqyi/cpiopwn | ExploitThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html | |
| https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html | ExploitMailing ListVendor Advisory |
| https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html | ExploitMailing ListVendor Advisory |
Track CVE-2021-38185 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-38185), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.