7.8

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

Modified
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 91.1% of scored vulnerabilities. 3 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
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 listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

7 scores · 6 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

No change 0.00 pp

From 4.17% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

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

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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
Alpine1 product
  • cpio< 2.13-r2
Debian1 product
  • cpio< 2.13+dfsg-5
Gnu1 product
Mageia1 product
  • cpio< 2.13-5.1.mga8
Ubuntu1 product
  • cpio< 2.11+dfsg-1ubuntu1.2+esm2 | < 2.11+dfsg-5ubuntu1.1+esm1 | < 2.12+dfsg-6ubuntu0.18.04.4 | < 2.13+dfsg-2ubuntu0.3 | < 2.13+dfsg-4ubuntu4

7 vendors · 39 products

References

32 links
Show all 32 references