{
  "cveId": "CVE-2021-28879",
  "url": "https://patchblox.com/security/cve/CVE-2021-28879",
  "summary": "CVE-2021-28879 is fixed in 18 products on 1 platform, first by libstd-rust-1.53 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1, released August 7, 2021. It is not reported as exploited. Patch Radar priority: High.",
  "title": "cargo: Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and...",
  "description": "Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and required libraries.\n\nThe following packages have been upgraded to a later upstream version: rust (1.52.1). (BZ#1953002)\n\nSecurity Fix(es):\n\n* rust: optimization for joining strings can cause uninitialized bytes to be exposed (CVE-2020-36323)\n\n* rust: heap-based buffer overflow in read_to_end() because it does not validate the return value from Read in an unsafe context (CVE-2021-28875)\n\n* rust: panic safety issue in Zip implementation (CVE-2021-28876)\n\n* rust: memory safety violation in Zip implementation for nested iter::Zips (CVE-2021-28877)\n\n* rust: memory safety violation in Zip implementation when next_back() and next() are used together (CVE-2021-28878)\n\n* rust: integer overflow in the Zip implementation can lead to a buffer overflow (CVE-2021-28879)\n\n* rust: double free in Vec::from_iter function if freeing the element panics (CVE-2021-31162)\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\nFor information on usage, see Using Rust Toolset linked in the References section.",
  "published": "2021-04-11T13:15:00Z",
  "severity": "Moderate",
  "cvss": 9.8,
  "epss": 0.02412,
  "epssPercentile": 0.84215,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "cargo",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "cargo",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "cargo-doc",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "cargo-doc",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "clippy",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "clippy",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libstd-rust-1.53",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "libstd-rust-1.53 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libstd-rust-1.53-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libstd-rust-1.53",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "libstd-rust-1.53 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libstd-rust-1.53-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rls",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rls",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-all",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rust-all 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rust-all-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-all",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rust-all 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rust-all-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-analysis",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-analysis",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-clippy",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rust-clippy 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rust-clippy-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-clippy",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rust-clippy 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rust-clippy-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-debugger-common",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-debugger-common",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-doc",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-doc",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-gdb",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-gdb",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rust-gdb 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rust-gdb-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-gdb",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rust-gdb 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rust-gdb-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-gdb",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-lldb",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-lldb",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rust-lldb 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rust-lldb-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-lldb",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rust-lldb 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rust-lldb-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-lldb",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-src",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-src",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rust-src 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rust-src-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-src",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rust-src 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rust-src-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-src",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-std-static",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-std-static",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-toolset",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rust-toolset",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rustc",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rustc 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rustc-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rustc",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rustc 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rustc-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rustfmt",
      "release": "RHEL 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B11282\u002B0729bac9",
      "fix": "RHSA-2021:3063",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-3063",
      "released": "2021-08-10T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "rustfmt",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "fix": "rustfmt 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1~20.04.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-rustfmt-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rustfmt",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "fix": "rustfmt 1.53.0\u002Bdfsg1\u002Bllvm-4ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-rustfmt-1.53.0-dfsg1-llvm-4ubuntu1",
      "released": "2021-08-07T10:15:00Z"
    },
    {
      "platform": "linux",
      "product": "rustfmt",
      "release": "ol 8",
      "fixedVersion": "0:1.52.1-1.module\u002Bel8.4.0\u002B20287\u002B5ada6442",
      "fix": "ELSA-2021-3063",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-3063",
      "released": "2021-08-12T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}