Live threats

All CVEs / Gnu

CVE-2021-38185Gnu Cpio

High 7.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cpio.

Affected products (CPE)

VendorProductVersions
gnucpio≤ 2.13

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.