GHSA-9g55-pg62-m8hh: Crossbeam channel Channel Creates Zero Value Of Vulnerability

HIGH
Published
Advisory Summary

GHSA-9g55-pg62-m8hh is a HIGH channel creates zero value of vulnerability (General Security Weakness) affecting Crossbeam channel libraries in the crates.io ecosystem. The issue involves channel creates zero value of any type. Remediation is available by upgrading affected packages to version 0.4.3.

GHSA-9g55-pg62-m8hh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9g55-pg62-m8hh
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Crossbeam channel
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-9g55-pg62-m8hh

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

crossbeam-channel fixed: 0.4.3
Upgrade crossbeam-channel to 0.4.3
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 crossbeam-channel

How to Check if You Are Affected

To determine whether your application is affected by GHSA-9g55-pg62-m8hh, inspect your project dependencies for Crossbeam channel:

inspect dependencies for crossbeam-channel

Analyze the terminal output to locate any version of Crossbeam channel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.3), 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 General Security Weakness. In Crossbeam channel, 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

Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`. This is unsound e.g. if `T` is a reference type (which must be non-null). The flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.

GHSA-9g55-pg62-m8hh Affected Crossbeam channel Versions

1 component(s)
Fixed Versions:
0.4.3
Product / Package Ecosystem Affected Versions Fixed Version
crossbeam-channel
crates.io
< 0.4.3
0.4.3

References

Frequently Asked Questions

What is GHSA-9g55-pg62-m8hh?
GHSA-9g55-pg62-m8hh is a security vulnerability in Crossbeam channel involving Channel creates zero value of any type under General Security Weakness.
Which Crossbeam channel versions are affected?
Affected versions include releases prior to 0.4.3 across affected packages: crossbeam-channel.
What version fixes GHSA-9g55-pg62-m8hh?
Upgrading to 0.4.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crossbeam-channel affected?
Yes, crossbeam-channel is affected in releases prior to 0.4.3. Upgrade your dependency to 0.4.3 or later.
What CWE is associated with GHSA-9g55-pg62-m8hh?
GHSA-9g55-pg62-m8hh is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-9g55-pg62-m8hh?
Run the dependency tree command: 'inspect dependencies for crossbeam-channel'. 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-9g55-pg62-m8hh",
  "modified" : "2022-06-16T23:49:25Z",
  "published" : "2022-06-16T23:49:25Z",
  "aliases" : [ ],
  "summary" : "Channel creates zero value of any type",
  "details" : "Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "crossbeam-channel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossbeam-rs/crossbeam/pull/458"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossbeam-rs/crossbeam"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0019.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-16T23:49:25Z",
    "nvd_published_at" : null
  }
}