CWE-1108: Excessive Reliance on Global Variables
The code is structured in a way that relies too much on using or setting global variables throughout various points in the code, instead of preserving the associated information in a narrower, more local context.
Last updated
Overview
CWE-1108 (Excessive Reliance on Global Variables) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
5 recorded CVEs are caused by CWE-1108 (Excessive Reliance on Global Variables). The highest-severity and most recent are shown first. 3 new CWE-1108 CVEs have been recorded so far in 2026.
- CVE-2026-32841
Edimax GS-5008PL <= 1.00.54 Global Authentication State Across All Clients
Critical · CVSS 9.2 · EPSS 59th2026-03-17 - CVE-2024-45337
Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto
Critical · CVSS 9.1 · EPSS 91th2024-12-11 - CVE-2022-2642
Excessive Reliance on Global Variables in Horner Automation Remote Compact Controller