Vulnerability DatabaseRUSTSEC-2026-0308

RUSTSEC-2026-0308: 
Rust vulnerability analysis and mitigation

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. Bugs 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. The 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. Salsa 0.28.5 and newer address this vulnerability. Dependent applications should update Salsa and rebuild. Applications 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.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0307HIGH7.1
  • Rust logoRust
  • uncbv
NoYesSep 23, 2026
GHSA-2jx3-ff3v-j7jjMEDIUM4.8
  • Rust logoRust
  • yara-x
NoYesSep 24, 2026
RUSTSEC-2026-0310NONEN/A
  • Rust logoRust
  • domain
NoYesSep 25, 2026
RUSTSEC-2026-0308NONEN/A
  • Rust logoRust
  • salsa
NoYesSep 24, 2026
RUSTSEC-2026-0305NONEN/A
  • Rust logoRust
  • librsvg
NoYesSep 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management