Affected 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>...
Product
crates.io enum-map vulnerabilities
2 published CVES affecting crates.io enum-map, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 2
- Critical
- 0
- High
- 0
- Medium
- 0
- Low
- 0
- Unscored
- 2
- CISA KEV
- 0
Latest crates.io enum-map CVEs
Newest publication first
-
Unknown
-
GHSA-rxhx-9fj6-6h2m enum_map macro can cause UB when `Enum` trait is incorrectly implemented
PublishedUnknownAffected versions of this crate did not properly check the length of an enum when using enum_map! macro, trusting user-provided length. When the LENGTH in the Enum trait does not match the array length in the EnumArray trait, this can result in the initialization of the enum map...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.