{
  "cveId": "CVE-2021-38185",
  "url": "https://patchblox.com/security/cve/CVE-2021-38185",
  "summary": "CVE-2021-38185 is fixed in 4 products on 1 platform, first by cpio 2.12\u002Bdfsg-6ubuntu0.18.04.4, released August 7, 2021. It is not reported as exploited. Patch Radar priority: High.",
  "title": "cpio: The cpio packages provide the GNU cpio utility for creating and extracting archives, or copying files from one place...",
  "description": "The cpio packages provide the GNU cpio utility for creating and extracting archives, or copying files from one place to another.\n\nSecurity Fix(es):\n\n* cpio: integer overflow in ds_fgetstr() in dstring.c can lead to an out-of-bounds write via a crafted pattern file (CVE-2021-38185)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the Red Hat Enterprise Linux 8.6 Release Notes linked from the References section.",
  "published": "2021-08-07T17:15:00Z",
  "severity": "Moderate",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
  "epss": 0.04165,
  "epssPercentile": 0.90952,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "cpio",
      "release": "RHEL 8",
      "fixedVersion": "0:2.12-11.el8",
      "fix": "RHSA-2022:1991",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2022-1991",
      "released": "2022-05-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.12\u002Bdfsg-6ubuntu0.18.04.4",
      "fix": "cpio 2.12\u002Bdfsg-6ubuntu0.18.04.4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-cpio-2.12-dfsg-6ubuntu0.18.04.4",
      "released": "2021-08-07T17:15:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.13\u002Bdfsg-2ubuntu0.3",
      "fix": "cpio 2.13\u002Bdfsg-2ubuntu0.3",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-cpio-2.13-dfsg-2ubuntu0.3",
      "released": "2021-08-07T17:15:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.13\u002Bdfsg-4ubuntu4",
      "fix": "cpio 2.13\u002Bdfsg-4ubuntu4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-cpio-2.13-dfsg-4ubuntu4",
      "released": "2021-08-07T17:15:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "almalinux 8",
      "fixedVersion": "2.12-11.el8",
      "fix": "ALSA-2022:1991",
      "url": "https://patchblox.com/security/fix/linux/alsa-2022-1991",
      "released": "2022-05-10T06:43:49Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "amzn 2023",
      "fixedVersion": "2.13-13.amzn2023.0.2",
      "fix": "ALAS2023-2023-021",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2023-021",
      "released": "2023-02-17T20:43:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "ol 8",
      "fixedVersion": "0:2.12-11.el8",
      "fix": "ELSA-2022-1991",
      "url": "https://patchblox.com/security/fix/linux/elsa-2022-1991",
      "released": "2022-05-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio",
      "release": "rocky 8",
      "fixedVersion": "0:2.12-11.el8",
      "fix": "RLSA-2022:1991",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2022-1991",
      "released": "2022-05-10T06:43:49Z"
    },
    {
      "platform": "linux",
      "product": "cpio-debuginfo",
      "release": "amzn 2023",
      "fixedVersion": "2.13-13.amzn2023.0.2",
      "fix": "ALAS2023-2023-021",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2023-021",
      "released": "2023-02-17T20:43:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio-debugsource",
      "release": "amzn 2023",
      "fixedVersion": "2.13-13.amzn2023.0.2",
      "fix": "ALAS2023-2023-021",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2023-021",
      "released": "2023-02-17T20:43:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio-win32",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.12\u002Bdfsg-6ubuntu0.18.04.4",
      "fix": "cpio-win32 2.12\u002Bdfsg-6ubuntu0.18.04.4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-cpio-win32-2.12-dfsg-6ubuntu0.18.04.4",
      "released": "2021-08-07T17:15:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio-win32",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.13\u002Bdfsg-2ubuntu0.3",
      "fix": "cpio-win32 2.13\u002Bdfsg-2ubuntu0.3",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-cpio-win32-2.13-dfsg-2ubuntu0.3",
      "released": "2021-08-07T17:15:00Z"
    },
    {
      "platform": "linux",
      "product": "cpio-win32",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.13\u002Bdfsg-4ubuntu4",
      "fix": "cpio-win32 2.13\u002Bdfsg-4ubuntu4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-cpio-win32-2.13-dfsg-4ubuntu4",
      "released": "2021-08-07T17:15:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T01:18:40Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}