GHSA-3jc5-5hc5-33gj

Suggest an improvement
Source
https://github.com/advisories/GHSA-3jc5-5hc5-33gj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3jc5-5hc5-33gj/GHSA-3jc5-5hc5-33gj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3jc5-5hc5-33gj
Aliases
Published
2021-08-25T20:50:49Z
Modified
2023-11-08T04:03:41.598624Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Data races in conquer-once
Details

Affected versions of conquer-once implements Sync for its OnceCell type without restricting it to Sendable types.

This allows non-Send but Sync types such as MutexGuard to be sent across threads leading to undefined behavior and memory corruption in concurrent programs.

The issue was fixed by adding a Send constraint to OnceCell.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-662",
        "CWE-787"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T18:51:18Z"
}
References

Affected packages

crates.io / conquer-once

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.2