What is CWE-522?
The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
CWE-522 is a class-level weakness in MITRE’s Common Weakness Enumeration. Applicable platforms: Language: Not Language-Specific; Technology: Not Technology-Specific; Technology: Web Based; Technology: ICS/OT.
Source: MITRE CWE (CWE-522 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Access Control — Gain Privileges or Assume Identity. An attacker could gain access to user accounts and access sensitive data used by the user accounts.
Source: MITRE CWE, common consequences.
How CWE-522 is exploited in the wild
Threadlinqs maps 27 CVEs to CWE-522, published between 2020-09-09 and 2026-11-16. 2 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 1 is tied to ransomware campaigns. By CVSS v3 severity the set splits into 5 critical, 8 high, 10 medium. The highest EPSS score in the set is 85.7% (CVE-2021-30116), the modelled probability of exploitation in the next 30 days. 275 tracked threats reference CWE-522 directly or through a CVE it covers; the most recent is “Microsoft agent-framework PyPI package compromised with .pth credential stealer (versions 1.26.1, 1.26.2)” (2026-11-18). Affected products concentrate in AsyncHttpClient (4), IBM (2), Siemens (2), among 21 vendors in total.
Vulnerabilities (CVEs)
All 27 CVEs mapped to CWE-522, CISA KEV first, then by CVSS score.
- CVE-2021-30116 — CISA KEV · CVSS 10 critical · EPSS 85.7% · published 2021-07-09
- CVE-2021-22681 — CISA KEV · CVSS 9.8 critical · EPSS 63.6% · published 2021-03-03
- CVE-2022-38465 — CVSS 9.3 critical · EPSS 0.2% · published 2022-10-11
- CVE-2026-62327 — CVSS 9.1 critical · EPSS 0.3% · published 2026-07-13
- CVE-2026-76483 — CVSS 9.1 critical · EPSS 0.2% · published 2026-10-07
- CVE-2026-21670 — CVSS 7.7 high · EPSS 0.4% · published 2026-03-12
- CVE-2026-101331 — CVSS 7.7 high · EPSS 0.2% · published 2026-10-06
- CVE-2026-111927 — CVSS 7.7 high · EPSS 0.2% · published 2026-10-17
- CVE-2026-21852 — CVSS 7.5 high · EPSS 27.8% · published 2026-01-21
- CVE-2023-41677 — CVSS 7.5 high · EPSS 0.7% · published 2024-04-09
- CVE-2026-59158 — CVSS 7.5 high · EPSS 0.5% · published 2026-10-27
- CVE-2026-115563 — CVSS 7.5 high · EPSS 0.3% · published 2026-11-16
- CVE-2026-107232 — CVSS 7.5 high · EPSS 0.2% · published 2026-10-07
- CVE-2026-39908 — CVSS 6.5 medium · EPSS 0.8% · published 2026-06-08
- CVE-2020-15791 — CVSS 6.5 medium · EPSS 0.7% · published 2020-09-09
- CVE-2026-92256 — CVSS 6.5 medium · EPSS 0.2% · published 2026-09-15
- CVE-2026-110192 — CVSS 6.5 medium · EPSS 0.2% · published 2026-10-29
- CVE-2026-75136 — CVSS 6.1 medium · EPSS 0.1% · published 2026-09-02
- CVE-2026-107285 — CVSS 5.9 medium · EPSS 0.2% · published 2026-10-07
- CVE-2026-91766 — CVSS 5.9 medium · published 2026-09-25
- CVE-2026-65087 — CVSS 5.6 medium · EPSS 0.1% · published 2026-08-25
- CVE-2024-54471 — CVSS 5.5 medium · EPSS 0.2% · published 2024-12-11
- CVE-2026-16553 — CVSS 5.4 medium · EPSS 0.3% · published 2026-07-29
- CVE-2026-42295 — EPSS 0.4% · published 2026-05-09
- CVE-2026-107231 — EPSS 0.2% · published 2026-10-07
- CVE-2026-107282 — EPSS 0.1% · published 2026-10-07
- CVE-2026-4387 — EPSS 0.1% · published 2026-05-29
Affected vendors
Threat activity
275 tracked threats cite CWE-522; the 25 most recent are listed.
- Microsoft agent-framework PyPI package compromised with .pth credential stealer (versions 1.26.1, 1.26.2)HIGH
- Malicious GitHub Repositories Hijack AI Coding Agents (Claude Code, Cursor) via Poisoned Instruction Files to Steal Developer CredentialsHIGH
- Underground Forums Selling Corporate VPN, RDP, and Cloud Access (DarkForums, Exploitin, PwnForums)MEDIUM
- Cursor Supply-Chain Compromise: Leaked Fireworks AI Key Leads to Backdoored Anthropic.claude-code Extension (2.1.312/2.1.313) in Cursor Marketplace CacheHIGH
- CVE-2026-21660 - Hardcoded credentials in Johnson Controls Frick Controls Quantum HD industrial refrigeration controllerMEDIUM
- ARTEX open-source AI pentesting framework weaponized by China-aligned and criminal actors (Storm-0940, VAPOR PANDA, Storm-3358, Crafty Falcon); leaked secrets are the primary entry vector; backdoored Docker imagesHIGH
- ARTEX open-source agentic AI pentest framework abused by Chinese-nexus state and criminal actors to automate intrusions at machine speed (FBI Flash Alert)HIGH
- School Bomb Threat Emails: Sender Accounts Linked to Infostealer Data (Vidar, AlienTXTBASE)MEDIUM
- Poisoned Take-Home Coding Test: AI Coding Agent-Driven Cloud Account Compromise via Indirect Prompt InjectionHIGH
- Operation Ghost Campus: AI Agents Steal OpenAI and DeepSeek API Keys From Exposed Servers and Harvest Data of 5,132 Chinese StudentsHIGH
- Bitdefender Threat Debrief Nov 2026: AI-assisted ransomware actors N0n and Azazel (MCP reverse-shell C2), BYOD, Booba TeamHIGH
- GhostAction Supply Chain Campaign Expands: Malicious GitHub Actions Workflow Steals Cloud and AI Credentials from Tens of Thousands of RepositoriesHIGH
- Remus Infostealer 1.3.9 Markets Persistent Gmail Access Feature (Enterprise Tier)HIGH
- AI Reward Hacking and Autonomous Sandbox Escape: OpenAI ExploitGym Evaluation Models Breach Hugging Face (Schneier DEF CON 34 Keynote Op-Ed)HIGH
- Software Supply Chain Attacks Overview: CCleaner, Codecov, SolarWinds Orion, npm Shai-Hulud, Kaseya VSA, MOVEit TransferHIGH
- Threat actors use agentic AI tooling (ARTEX) to find and abuse exposed secrets in GitHub and AzureHIGH
- BlackNevas and The Gentlemen Ransomware Cases Against ESXi and Proxmox Virtualization EnvironmentsHIGH
- Metasploit 6.5.9 Wrapup: Public Exploit Modules for Citrix NetScaler (CVE-2026-88771), Cisco Secure Email Gateway (CVE-2026-76461/76443), GitLab CI/CD Regex RCE (CVE-2026-97229), OpenBullet2, Flowise, SPIP and WordPress Bug LibraryCRITICAL
- Insider Threat: FBI Supervisory Special Agent Pleads Guilty to Stealing $2.4M in Crypto Seized from Nation-State Hackers and Crime VictimsMEDIUM
- WardenStealer and Aoki (Aokigahara) Infostealers Steal ChatGPT, Claude, and Codex Tokens That Survive Password ResetsHIGH
- Key Eater: Stolen Microsoft Entra ID Application Credentials Used to Breach 27 OrganizationsHIGH
- Critical Langflow Flaws (CVE-2026-93680, CVE-2026-110186) Allow Unauthenticated Attackers to Run Code on ServersCRITICAL
- CVE-2024-54471: macOS NetAuthAgent MIG Server Flaw Enables Credential Leakage and iCloud Data AccessMEDIUM
- Infostealer Logs Expose Binance Corporate Identities Linked to Okta, Kibana, Git and JetBrains AccessMEDIUM
- GhostAction GitHub Actions Supply-Chain Campaign: October 2026 Wave Largely Blocked, Attackers Retain Access to ~1,800 Compromised AccountsHIGH
Mitigations
- Architecture and Design: Use an appropriate security mechanism to protect the credentials.
- Architecture and Design: Make appropriate use of cryptography to protect the credentials.
- Implementation: Use industry standards to protect the credentials (e.g. LDAP, keystore, etc.).
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Automated Static Analysis (effectiveness: High): Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.