{"id":"RUSTSEC-2026-0308","revision":null,"records":[{"revision":"2bc3ea9fc2f44db8ae9855faaa2724aa","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0308","aliases":["GHSA-xc3w-55vh-cw3w"],"title":"Use-after-free in interned values and cached function results","description":"When an application reads an interned value's fields or uses that value as an input to a tracked function, Salsa must ensure that reusable storage has been validated for the current database revision. This prevents the value's fields and associated cached function results from being freed while in use. Affected versions checked this invariant only with `debug_assert!` when reading fields, and did not check it when using an interned value to access a tracked function's cached result.\n\nBugs in Salsa's dependency tracking, or an application-provided `Eq` implementation that incorrectly treats a changed query result as unchanged, can cause Salsa to reuse cached results containing stale interned values. If the application accesses these values and then interns additional values, Salsa can free the old fields or cached function results while references to them are still in use. This causes use-after-free through safe Rust APIs. Depending on the consuming application, attacker-controlled input may expose process memory or permit arbitrary code execution.\n\nThe fix asserts that an interned value's reusable storage has been validated for the current database revision before allowing an application to read its fields or access a tracked function's cached result using that value as input. If the assertion fails, Salsa panics before returning references to storage that could be freed while in use.\n\nSalsa 0.28.5 and newer address this vulnerability. Dependent applications should update Salsa and rebuild.\n\nApplications that disable garbage collection for all explicitly declared interned structs using `#[salsa::interned(revisions = usize::MAX)]` and do not use implicitly interned query arguments are not affected by this vulnerability.","state":0,"publishedAt":"2026-09-24T12:00:00+00:00","modifiedAt":"2026-09-24T14:45:04.8735654+00:00","affected":[{"ecosystem":"crates.io","name":"salsa","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.23.0"},{"kind":"fixed","version":"0.28.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/salsa","https://rustsec.org/advisories/RUSTSEC-2026-0308.html","https://github.com/salsa-rs/salsa/pull/1329"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0308","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0308","identifiers":["RUSTSEC-2026-0308","GHSA-xc3w-55vh-cw3w"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-12T12:55:42.4262761+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T12:55:42.4262761+00:00","lastSuccessAt":"2026-11-12T12:55:42.5974366+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:55:42.5974423+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-5bccd177289498505bca058c1d1f630384f5399f00540fa3e5d47f20d2a6ab62","complete":true,"records":424657,"lastAttemptAt":"2026-11-12T12:53:35.4399876+00:00","lastSuccessAt":"2026-11-12T12:53:35.3826245+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:53:35.4399876+00:00","snapshotPublishedAt":"2026-11-12T12:31:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0580dcc98aaa46a8935f8ff576f25037","complete":true,"records":13764,"lastAttemptAt":"2026-11-12T12:56:08.7918389+00:00","lastSuccessAt":"2026-11-12T11:56:20.209+00:00","error":null,"lastVerifiedAt":"2026-11-12T11:56:20.209+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13817,"expectedIdentifiers":13817,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-12T12:55:42.4262761+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-12T12:55:42.4262761+00:00","lastSuccessAt":"2026-11-12T12:55:42.5982202+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:55:42.5982204+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8e24d21c65544232af203e5ab569fc84","complete":false,"records":13764,"lastAttemptAt":"2026-11-12T12:56:08.0805262+00:00","lastSuccessAt":"2026-11-12T12:56:08.077+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:56:08.077+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13313,"expectedIdentifiers":13817,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-12T12:55:42.268774+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:55:42.268774+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-12T12:53:36.536519+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:53:36.536519+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f46f74c6a30a9b6e4cfb481719c6d35521ebec2d53ebf163223d093ae587eb9d","complete":true,"records":3106,"lastAttemptAt":"2026-11-12T12:55:42.3839893+00:00","lastSuccessAt":"2026-11-12T09:55:31.1176285+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:55:42.3839893+00:00","snapshotPublishedAt":"2026-11-12T09:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-9fe0abab1a1e38846a00931efa6f1538c21ec4cb4a790552d5b52b39478d28ca","complete":true,"records":231701,"lastAttemptAt":"2026-11-12T12:55:42.1436747+00:00","lastSuccessAt":"2026-11-12T12:55:40.1640864+00:00","error":null,"lastVerifiedAt":"2026-11-12T12:55:42.1436747+00:00","snapshotPublishedAt":"2026-11-12T12:33:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}