GHSA-mpg5-fvwp-42m2: Dashmap Unsoundness Vulnerability
HIGHGHSA-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
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.
Upgrade dashmap to 5.1.0
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
GHSA-mpg5-fvwp-42m2 Affected Dashmap Versions
1 component(s)| 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?
Which Dashmap versions are affected?
What version fixes GHSA-mpg5-fvwp-42m2?
Is dashmap affected?
What CWE is associated with GHSA-mpg5-fvwp-42m2?
How can I check crates.io dependencies for GHSA-mpg5-fvwp-42m2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}