Integer Overflow or Wraparound Affecting cpio package, versions <2.11+dfsg-1ubuntu1.2+esm2


Severity

Recommended
medium

Based on Ubuntu security rating

    Threat Intelligence

    EPSS
    0.25% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UBUNTU1404-CPIO-1619991
  • published 9 Aug 2021
  • disclosed 8 Aug 2021

How to fix?

Upgrade Ubuntu:14.04 cpio to version 2.11+dfsg-1ubuntu1.2+esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cpio package and not the cpio package as distributed by Ubuntu. See How to fix? for Ubuntu:14.04 relevant fixed versions and status.

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 Scores

version 3.1
Expand this section

NVD

7.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

SUSE

8.8 high
Expand this section

Red Hat

7 high