GHSA-mpg5-fvwp-42m2: Dashmap Unsoundness Vulnerability

HIGH
Published
Advisory Summary

GHSA-mpg5-fvwp-42m2 is a HIGH unsoundness vulnerability (General Security Weakness) affecting Dashmap libraries in the crates.io ecosystem. The issue involves unsoundness in `dashmap` references. Remediation is available by upgrading affected packages to version 5.1.0.

GHSA-mpg5-fvwp-42m2 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mpg5-fvwp-42m2
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Dashmap
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-mpg5-fvwp-42m2

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

dashmap fixed: 5.1.0
Upgrade dashmap to 5.1.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 dashmap

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mpg5-fvwp-42m2, inspect your project dependencies for Dashmap:

inspect dependencies for dashmap

Analyze the terminal output to locate any version of Dashmap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.1.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 Dashmap, 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

Reference returned by some methods of `Ref` (and similar types) may outlive the `Ref` and escape the lock. This causes undefined behavior and may result in a segfault. More information in [`dashmap#167`](https://github.com/xacrimon/dashmap/issues/167) issue.

GHSA-mpg5-fvwp-42m2 Affected Dashmap Versions

1 component(s)
Fixed Versions:
5.1.0
Product / Package Ecosystem Affected Versions Fixed Version
dashmap
crates.io
≥ 5.0.0
< 5.1.0
All 1 versions
5.0.0
5.1.0

References

Frequently Asked Questions

What is GHSA-mpg5-fvwp-42m2?
GHSA-mpg5-fvwp-42m2 is a security vulnerability in Dashmap involving Unsoundness in `dashmap` references under General Security Weakness.
Which Dashmap versions are affected?
Affected versions include releases prior to 5.1.0 across affected packages: dashmap.
What version fixes GHSA-mpg5-fvwp-42m2?
Upgrading to 5.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dashmap affected?
Yes, dashmap is affected in releases prior to 5.1.0. Upgrade your dependency to 5.1.0 or later.
What CWE is associated with GHSA-mpg5-fvwp-42m2?
GHSA-mpg5-fvwp-42m2 is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-mpg5-fvwp-42m2?
Run the dependency tree command: 'inspect dependencies for dashmap'. 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-mpg5-fvwp-42m2",
  "modified" : "2022-06-16T23:52:24Z",
  "published" : "2022-06-16T23:52:24Z",
  "aliases" : [ ],
  "summary" : "Unsoundness in `dashmap` references",
  "details" : "Reference returned by some methods of `Ref` (and similar types) may outlive the `Ref` and escape the lock.\nThis causes undefined behavior and may result in a segfault.\n\nMore information in [`dashmap#167`](https://github.com/xacrimon/dashmap/issues/167) issue.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "dashmap"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.1.0"
      } ]
    } ],
    "versions" : [ "5.0.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xacrimon/dashmap/issues/167"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xacrimon/dashmap"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0002.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-16T23:52:24Z",
    "nvd_published_at" : null
  }
}