CWE-522 / WEAKNESS
Insufficiently Protected Credentials
The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
- Category
- CWE weaknesses
- Version / scope
- CWE 4.20; release 2026-04-30; publisher status Incomplete
- Affected / relevant technologies
- Not Technology-Specific / Web Based / ICS/OT / Not Language-Specific
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
No separate exploit prerequisites are asserted here; the publisher's weakness/pattern context must be matched to the implementation.
Potential impact
Access Control Gain Privileges or Assume Identity An attacker could gain access to user accounts and access sensitive data used by the user accounts.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CWE 4.20; release 2026-04-30; publisher status Incomplete. Source checked: 2026-11-18.
Source object: CWE-522. Object modified: 2025-12-11.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- Automated Static Analysis 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.) High
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- 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.).
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-102 → Related_Weakness → CWE-522 Open related reference
- CAPEC-474 → Related_Weakness → CWE-522 Open related reference
- CAPEC-50 → Related_Weakness → CWE-522 Open related reference
- CAPEC-509 → Related_Weakness → CWE-522 Open related reference
- CAPEC-551 → Related_Weakness → CWE-522 Open related reference
- CAPEC-555 → Related_Weakness → CWE-522 Open related reference
- CAPEC-560 → Related_Weakness → CWE-522 Open related reference
- CAPEC-561 → Related_Weakness → CWE-522 Open related reference
- CAPEC-600 → Related_Weakness → CWE-522 Open related reference
- CAPEC-644 → Related_Weakness → CWE-522 Open related reference
- CAPEC-645 → Related_Weakness → CWE-522 Open related reference
- CAPEC-652 → Related_Weakness → CWE-522 Open related reference
- CAPEC-653 → Related_Weakness → CWE-522 Open related reference
- CWE-256 → ChildOf → CWE-522 Open related reference
- CWE-257 → ChildOf → CWE-522 Open related reference
- CWE-260 → ChildOf → CWE-522 Open related reference
- CWE-261 → ChildOf → CWE-522 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-102 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-474 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-50 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-509 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-551 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-555 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-560 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-561 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-600 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-644 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-645 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-652 Open related reference
- CWE-522 → Related_Attack_Pattern → CAPEC-653 Open related reference
- CWE-522 → ChildOf → CWE-1390 Open related reference
- CWE-522 → ChildOf → CWE-287 Open related reference
- CWE-522 → ChildOf → CWE-668 Open related reference
- CWE-523 → ChildOf → CWE-522 Open related reference
- CWE-549 → ChildOf → CWE-522 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CWE-522 — source accessed 2026-11-18
- cwe — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
