Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-1108 — Vulnerability Class 2

2 vulnerabilities classified as CWE-1108. AI Chinese analysis included.

CWE-1108 represents a structural weakness where software architecture excessively depends on global variables for state management rather than encapsulating data within local scopes. This design flaw typically enables exploitation by allowing attackers to manipulate shared state across unrelated code modules, potentially bypassing security checks or causing unintended side effects through race conditions and unauthorized data modification. Because global variables lack strict access controls, malicious actors can inject harmful values that persist throughout the application’s lifecycle, compromising integrity and confidentiality. To mitigate this risk, developers should adopt modular programming practices, passing data explicitly through function parameters and return values. Implementing strict encapsulation and minimizing variable scope ensures that state changes are localized, predictable, and easier to audit, thereby reducing the attack surface and enhancing overall system resilience against state-based vulnerabilities.

MITRE CWE Description
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.
Common Consequences (1)
OtherReduce Maintainability, Increase Analytical Complexity
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.
CVE IDTitleCVSSSeverityPublished
CVE-2026-32841 Edimax GS-5008PL <= 1.00.54 Global Authentication State Across All Clients — Edimax GS-5008PL 8.1 High2026-03-17
CVE-2022-2642 Horner Automation Remote Compact Controller 安全漏洞 — Remote Compact Controller (RCC) 972 7.5 High2022-12-12

Vulnerabilities classified as CWE-1108 represent 2 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.