`Enum` trait allows type confusion when manually implemented
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
osv · RUSTSEC-2026-0218
PublishedAffected versions of this crate did not require the element type of the `Array` associated type in the `Enum` trait to match the array's generic parameter `V`. This can result in type confusion, and consequently memory corruption, when a manual `Enum` implementation declares an `Array<V>` whose elements are not actually of type `V`: ```rust struct IntentionallyWrong; impl Enum for IntentionallyWrong { type Array<V> = [String; 4]; fn from_usize(_: usize) -> Self { IntentionallyWrong } fn into_usize(self) -> usize { 0 } } enum_map! { IntentionallyWrong => 42 }; ``` The flaw was corrected in commit [7a8b815432](https://codeberg.org/sugar700/enum-map/commit/7a8b8154323d426415a10accf104cd05c394cda9) by adding a `Value = V` bound to the `Array` type in the `Enum` trait.
- Source published
- 21 Jul 2026 12:00:00 UTC
- Source modified
- 28 Jul 2026 18:45:04 UTC
- Saved here
- 24 Oct 2026 13:19:54 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.