UBUNTU-CVE-2021-38185

    Dashboard / Vulnerabilities / UBUNTU-CVE-2021-38185

    UBUNTU-CVE-2021-38185

    Published: 8 Aug 2021Last Modified: 4 Feb 2026

    Summary:

    Details: 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.

    Affected packages

    Package

    Name: cpio

    Purl: pkg:deb/ubuntu/[email protected]+dfsg-1ubuntu1.2+esm2?arch=source&distro=trusty/esm

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2.11+dfsg-1ubuntu1.2+esm2

    Affected versions

    2.11+dfsg-1ubuntu1
    2.11+dfsg-1ubuntu1.1
    2.11+dfsg-1ubuntu1.2
    2.11+dfsg-1ubuntu1.2+esm1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    UBUNTU-CVE-2021-38185 | CVE-DB