diff --git a/crates/RUSTSEC-2024-0005.json b/crates/RUSTSEC-2024-0005.json new file mode 100644 index 000000000..6cbdce00d --- /dev/null +++ b/crates/RUSTSEC-2024-0005.json @@ -0,0 +1,61 @@ +{ + "id": "RUSTSEC-2024-0005", + "modified": "2024-01-22T02:05:54Z", + "published": "2024-01-07T12:00:00Z", + "aliases": [], + "related": [], + "summary": "Unsound sending of non-Send types across threads", + "details": "Affected versions can run the `Drop` impl of a non-Send type on a different\nthread than it was created on.\n\nThe flaw occurs when a stderr write performed by the `threadalone` crate fails,\nfor example because stderr is redirected to a location on a filesystem that is\nfull, or because stderr is a pipe that has been closed by the reader.\n\nDropping a non-Send type on the wrong thread is unsound. If used with a type\nsuch as a pthread-based `MutexGuard`, [the consequence is undefined\nbehavior][mutexguard]. If used with `Rc`, there would be a data race on the\nreference count, which is likewise undefined behavior.\n\n[mutexguard]: https://github.com/rust-lang/rust/issues/23465#issuecomment-82730326", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "threadalone", + "purl": "pkg:cargo/threadalone" + }, + "ecosystem_specific": { + "affects": { + "arch": [], + "os": [], + "functions": [] + } + }, + "database_specific": { + "categories": [], + "cvss": null, + "informational": "unsound" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0.0.0-0" + }, + { + "fixed": "0.2.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "PACKAGE", + "url": "https://crates.io/crates/threadalone" + }, + { + "type": "ADVISORY", + "url": "https://rustsec.org/advisories/RUSTSEC-2024-0005.html" + }, + { + "type": "REPORT", + "url": "https://github.com/cr0sh/threadalone/issues/1" + } + ], + "database_specific": { + "license": "CC0-1.0" + } +} \ No newline at end of file