7.8

CVE-2021-38185: gnu cpio Integer Overflow or Wraparound

CVSS: 7.8v3.1HighModified
AliasesMGASA-2021-0423SUSE-RU-2021:2779-1SUSE-RU-2021:2780-1
Published 07-08-2021Last modified 09-06-2025

Vulnerability summary

CVE-2021-38185 is a high (CVSS 7.8) Integer Overflow or Wraparound vulnerability in gnu cpio. EPSS estimates a 4.17% chance of exploitation in the next 30 days, higher than 90.7% of scored vulnerabilities. 3 public exploits are recorded.

Overall risk
42/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
4.17%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits3github, reference

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 07-08-2021
    PublishedVulnerability first disclosed.
  2. 09-06-2025
    Last modifiedVulnerability information updated.

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 metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

4.17%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

0.00 pp

From 4.17% on 18-09-2026

18-09-202618-10-2026
EPSS score
4.17%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

3 found
  • githubUnverified

    Cpiopwn

    Maturity: poc

  • referenceUnverified

    Exploit Reference (lists.gnu.org)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (lists.gnu.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Suse31 products
  • cpio&distro=HPE Helion OpenStack 8< 2.11-36.12.1 | < 2.11-36.9.1 | < 2.11-36.15.1
  • cpio&distro=SUSE Enterprise Storage 6< 2.12-3.9.1
  • cpio&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 2.12-3.9.1
  • cpio&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 2.12-3.9.1
  • cpio&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 2.12-3.9.1
Redhat3 products
  • cpio< 0:2.12-11.el8
  • cpio-debuginfo< 0:2.12-11.el8
  • cpio-debugsource< 0:2.12-11.el8
Debian1 product
  • cpio< 2.13+dfsg-5
Gnu1 product
Mageia1 product
  • cpio< 2.13-5.1.mga8
Ubuntu1 product
  • cpio< 2.12+dfsg-6ubuntu0.18.04.4 | < 2.13+dfsg-2ubuntu0.3 | < 2.11+dfsg-5ubuntu1.1+esm1 | < 2.11+dfsg-1ubuntu1.2+esm2 | < 2.13+dfsg-4ubuntu4

6 vendors · 38 products

References

31 links
Show all 31 references