RUSTSEC-2023-0058

Source
https://rustsec.org/advisories/RUSTSEC-2023-0058
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0058.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2023-0058
Aliases
Published
2023-09-10T12:00:00Z
Modified
2024-02-10T16:26:47.997172Z
Summary
Exposes reference to non-Sync data to an arbitrary thread
Details

Affected versions do not enforce a Sync bound on the type of caller-provided value held in the plugin registry. References to these values are made accessible to arbitrary threads other than the one that constructed them.

A caller could use this flaw to submit thread-unsafe data into inventory, then access it as a reference simultaneously from multiple threads.

The flaw was corrected by enforcing that data submitted by the caller into inventory is Sync.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / inventory

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.2.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": [
        "thread-safety"
    ]
}