Skip to main content

CWE-522: Insufficiently Protected Credentials

ClassIncomplete🏆 #25 in Top 25 (2024)

The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.

View on MITRE
283Related CVEs
8.54Severity Score
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

🏆 CWE Top 25 Historical Ranking

2024:#25
Score: 8.54
283 CVEs
Trend:★ New to Top 25

Frequently Asked Questions

What is CWE-522: Insufficiently Protected Credentials?+

CWE-522: Insufficiently Protected Credentials is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.

Is CWE-522 in the CWE Top 25 Most Dangerous Software Weaknesses?+

Yes. CWE-522 ranked #25 in the CWE Top 25 for 2024, associated with 283 CVEs that year. The CWE Top 25 highlights the most common and impactful software weaknesses based on real-world vulnerability data.

What are the security consequences of Insufficiently Protected Credentials?+

If exploited, CWE-522 (Insufficiently Protected Credentials) it can compromise Access Control, leading to outcomes such as Gain Privileges or Assume Identity.

How do you prevent or mitigate Insufficiently Protected Credentials?+

Recommended mitigations for CWE-522 include: Use an appropriate security mechanism to protect the credentials. Make appropriate use of cryptography to protect the credentials. Use industry standards to protect the credentials (e.g. LDAP, keystore, etc.).

Which programming languages are affected by Insufficiently Protected Credentials?+

CWE-522 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Insufficiently Protected Credentials?+

MITRE documents real CVEs mapped to CWE-522, including CVE-2022-30018, CVE-2022-29959, CVE-2022-35411, CVE-2022-29519 and CVE-2022-30312. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-522 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More