1. CVE archive
  2. Vulnerability types
  3. CWE-462
CWE-462 · #739 most frequent type in the archive

Duplicate Key in Associative List (Alist)

Duplicate keys in associative lists can lead to non-unique keys being mistaken for an error.

Part of: CWE-694 · Use of Multiple Resources with Duplicate Identifier

1CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Jun 15, 2025latest published

What it is

Duplicate keys in associative lists can lead to non-unique keys being mistaken for an error.

Impact on systems

ScopeImpact
Other Quality Degradation, Varies by Context
If an alist contains duplicate key entries, this introduces an ambiguity in which it cannot be predicted which key value will be selected.

How to prevent it

Implementation Use a hash table instead of an alist.
Implementation Use an alist which checks the uniqueness of hash keys with each entry before inserting the entry.
Implementation Duplicate key entries in an association list are not recommended and should not be allowed.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-462 CVEs

1 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.