CVE-2021-29934: Uu od Out Of Bounds Read Vulnerability

HIGH
Advisory Identifier: GHSA-w9vv-q986-vj7x
CVSS 7.3
CWE-125
Published
Advisory Summary

CVE-2021-29934 is a HIGH (CVSS 7.3) out of bounds read vulnerability (CWE-125: Out-of-bounds Read) affecting Uu od libraries in the crates.io ecosystem. The issue involves out of bounds read in uu_od. Remediation is available by upgrading affected packages to version 0.0.4.

CVE-2021-29934 at a Glance

CVE Identifier CVE-2021-29934
GHSA Identifier GHSA-w9vv-q986-vj7x
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Uu od
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2021-29934

To remediate this vulnerability, upgrade all affected Uu od dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

uu_od fixed: 0.0.4
Upgrade uu_od to 0.0.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for uu_od

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-29934, inspect your project dependencies for Uu od:

inspect dependencies for uu_od

Analyze the terminal output to locate any version of Uu od in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Uu od, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in PartialReader in the uu_od crate before 0.0.4 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation.

CVE-2021-29934 Affected Uu od Versions

1 component(s)
Fixed Versions:
0.0.4
Product / Package Ecosystem Affected Versions Fixed Version
uu_od
crates.io
< 0.0.4
0.0.4

References

Frequently Asked Questions

What is CVE-2021-29934?
CVE-2021-29934 is a security vulnerability in Uu od involving Out of bounds read in uu_od under CWE-125: Out-of-bounds Read.
Which Uu od versions are affected?
Affected versions include releases prior to 0.0.4 across affected packages: uu_od.
What version fixes CVE-2021-29934?
Upgrading to 0.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is uu_od affected?
Yes, uu_od is affected in releases prior to 0.0.4. Upgrade your dependency to 0.0.4 or later.
What is the CVSS score of CVE-2021-29934?
CVE-2021-29934 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2021-29934?
CVE-2021-29934 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check crates.io dependencies for CVE-2021-29934?
Run the dependency tree command: 'inspect dependencies for uu_od'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w9vv-q986-vj7x",
  "modified" : "2021-08-19T17:09:13Z",
  "published" : "2021-08-25T20:54:24Z",
  "aliases" : [ "CVE-2021-29934" ],
  "summary" : "Out of bounds read in uu_od",
  "details" : "An issue was discovered in PartialReader in the uu_od crate before 0.0.4 for Rust. Attackers can read the contents of uninitialized memory locations via a user-provided Read operation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "uu_od"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29934"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/issues/1729"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/pull/1730"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/pull/1738"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/pull/1739"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/commit/39d62c6c1f809022c903180471c10fde6ecd12d1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/commit/5935876f38498b0c1f657d031171eb17028def6f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/uutils/coreutils/commit/7341a1a033aa5980ac59bc9d4df978b396de4fad"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/uutils/coreutils"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2021-0043.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-19T17:09:13Z",
    "nvd_published_at" : "2021-04-01T05:15:00Z"
  }
}