CVE-2021-38185Gnu Cpio
High 7.8
Follow: this CVE · Gnu · Gnu Cpio We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- Yes
- Published
- Aug 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cpio.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gnu | cpio | ≤ 2.13 |
Official advisories
- Multiple Vulnerabilities in Ruggedcom Rox Before V2.17.0 · Siemens · SSA-202008 · Dec 9, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- git.savannah.gnu.org Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- lists.debian.org
- lists.gnu.org Exploit Mailing List Vendor Advisory
- lists.gnu.org Exploit Mailing List Vendor Advisory