GHSA-rwf4-gx62-rqfw: Crossbeam `MsQueue` `push`/`pop` Use The Wrong Vulnerability

MODERATE
Published
Advisory Summary

GHSA-rwf4-gx62-rqfw is a MODERATE `msqueue` `push`/`pop` use the wrong vulnerability (General Security Weakness) affecting Crossbeam libraries in the crates.io ecosystem. The issue involves `msqueue` `push`/`pop` use the wrong orderings. Remediation is available by upgrading affected packages to version 0.3.0.

GHSA-rwf4-gx62-rqfw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rwf4-gx62-rqfw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Crossbeam
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-rwf4-gx62-rqfw

To remediate this vulnerability, upgrade all affected Crossbeam 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 fixed: 0.3.0
Upgrade crossbeam to 0.3.0
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

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rwf4-gx62-rqfw, inspect your project dependencies for Crossbeam:

inspect dependencies for crossbeam

Analyze the terminal output to locate any version of Crossbeam in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), 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, 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 use orderings which are too weak to support this data structure. It is likely this has caused memory corruption in the wild: <https://github.com/crossbeam-rs/crossbeam/issues/97#issuecomment-412785919>.

GHSA-rwf4-gx62-rqfw Affected Crossbeam Versions

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

References

Frequently Asked Questions

What is GHSA-rwf4-gx62-rqfw?
GHSA-rwf4-gx62-rqfw is a security vulnerability in Crossbeam involving `MsQueue` `push`/`pop` use the wrong orderings under General Security Weakness.
Which Crossbeam versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: crossbeam.
What version fixes GHSA-rwf4-gx62-rqfw?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crossbeam affected?
Yes, crossbeam is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What CWE is associated with GHSA-rwf4-gx62-rqfw?
GHSA-rwf4-gx62-rqfw is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-rwf4-gx62-rqfw?
Run the dependency tree command: 'inspect dependencies for crossbeam'. 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-rwf4-gx62-rqfw",
  "modified" : "2022-06-08T22:28:27Z",
  "published" : "2022-06-08T22:28:27Z",
  "aliases" : [ ],
  "summary" : "`MsQueue` `push`/`pop` use the wrong orderings",
  "details" : "Affected versions of this crate use orderings which are too weak to support this data structure.\nIt is likely this has caused memory corruption in the wild: <https://github.com/crossbeam-rs/crossbeam/issues/97#issuecomment-412785919>.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "crossbeam"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossbeam-rs/crossbeam/issues/97#issuecomment-412785919"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crossbeam-rs/crossbeam/pull/98"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossbeam-rs/crossbeam"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0029.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-08T22:28:27Z",
    "nvd_published_at" : null
  }
}