---
title: "CWE-916: Use of Password Hash With Insufficient Computational Effort"
url: https://radicalnotion.ai/cwe/cwe-916
type: cwe
description: "The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-916: Use of Password Hash With Insufficient Computational Effort

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 124
- **Of those, in CISA KEV:** 0
- **New in 2026:** 37
- **CWE catalog version:** 4.21

## Description

The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.

Many password storage mechanisms compute a hash and store the hash, instead of storing the original password in plaintext. In this design, authentication involves accepting an incoming password, computing its hash, and comparing it to the stored hash.

Many hash algorithms are designed to execute quickly with minimal overhead, even cryptographic hashes. However, this efficiency is a problem for password storage, because it can reduce an attacker's workload for brute-force password cracking. If an attacker can obtain the hashes through some other method (such as SQL injection on a database that stores hashes), then the attacker can store the hashes offline and use various techniques to crack the passwords by computing hashes efficiently. Without a built-in workload, modern attacks can compute large numbers of hashes, or even exhaust the entire space of all possible passwords, within a very short amount of time, using massively-parallel computing (such as cloud computing) and GPU, ASIC, or FPGA hardware. In such a scenario, an efficient hash algorithm helps the attacker.

There are several properties of a hash scheme that are relevant to its strength against an offline, massively-parallel attack:

The amount of CPU time required to compute the hash ("stretching")

The amount of memory required to compute the hash ("memory-hard" operations)

Including a random value, along with the password, as input to the hash computation ("salting")

Given a hash, there is no known way of determining an input (e.g., a password) that produces this hash value, other than by guessing possible inputs ("one-way" hashing)

Relative to the number of all possible hashes that can be generated by the scheme, there is a low likelihood of producing the same hash for multiple different inputs ("collision resistance")

Note that the security requirements for the product may vary depending on the environment and the value of the passwords. Different schemes might not provide all of these properties, yet may still provide sufficient security for the environment. Conversely, a solution might be very strong in preserving one property, which still being very weak for an attack against another property, or it might not be able to significantly reduce the efficiency of a massively-parallel attack.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | If an attacker can gain access to the hashes, then the lack of sufficient computational effort will make it easier to conduct brute force attacks using techniques such as rainbow tables, or specialized hardware such as GPUs, which can be much faster than general-purpose CPUs for computing hashes. |

## Potential mitigations

### Architecture and Design

Use an adaptive hash function that can be configured to change the amount of computational effort needed to compute the hash, such as the number of iterations ("stretching") or the amount of memory required. Some hash functions perform salting automatically. These functions can significantly increase the overhead for a brute force attack compared to intentionally-fast functions such as MD5. For example, rainbow table attacks can become infeasible due to the high computing overhead. Finally, since computing power gets faster and cheaper over time, the technique can be reconfigured to increase the workload without forcing an entire replacement of the algorithm in use.

Some hash functions that have one or more of these desired properties include bcrypt \[REF-291\], scrypt \[REF-292\], and PBKDF2 \[REF-293\]. While there is active debate about which of these is the most effective, they are all stronger than using salts with hash functions with very little computing overhead.

Note that using these functions can have an impact on performance, so they require special consideration to avoid denial-of-service attacks. However, their configurability provides finer control over how much CPU and memory is used, so it could be adjusted to suit the environment's needs.

Effectiveness: High

### Implementation, Architecture and Design

When using industry-approved techniques, use them correctly. Don't cut corners by skipping resource-intensive steps (CWE-325). These steps are often essential for preventing common attacks.

## Detection methods

### Automated Static Analysis - Binary or Bytecode

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Bytecode Weakness Analysis - including disassembler + source code weakness analysis
- Binary Weakness Analysis - including disassembler + source code weakness analysis

Effectiveness: SOAR Partial

### Manual Static Analysis - Binary or Bytecode

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies

Effectiveness: SOAR Partial

### Manual Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

- Focused Manual Spotcheck - Focused manual analysis of source
- Manual Source Code Review (not inspections)

Effectiveness: High

### Automated Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

- Source code Weakness Analyzer
- Context-configured Source Code Weakness Analyzer

Effectiveness: High

### Automated Static Analysis

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Configuration Checker

Effectiveness: SOAR Partial

### Architecture or Design Review

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

Cost effective for partial coverage:

- Formal Methods / Correct-By-Construction
- Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)

Effectiveness: High

## Demonstrative examples

### Example 1

In this example, a new user provides a new username and password to create an account. The program hashes the new user's password then stores it in a database.

Bad code:

```python
def storePassword(userName,Password):
    hasher = hashlib.new('md5')
    hasher.update(Password)
    hashedPassword = hasher.digest()

    # UpdateUserLogin returns True on success, False otherwise
    return updateUserLogin(userName,hashedPassword)
```

Good code:

```python
def storePassword(userName,Password):
    hasher = hashlib.new('md5',b'SaltGoesHere')
    hasher.update(Password)
    hashedPassword = hasher.digest()

    # UpdateUserLogin returns True on success, False otherwise
    return updateUserLogin(userName,hashedPassword)
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2008-1526 | Router does not use a salt with a hash, making it easier to crack passwords. |
| CVE-2006-1058 | Router does not use a salt with a hash, making it easier to crack passwords. |
| CVE-2008-4905 | Blogging software uses a hard-coded salt when calculating a password hash. |
| CVE-2002-1657 | Database server uses the username for a salt when encrypting passwords, simplifying brute force attacks. |
| CVE-2001-0967 | Server uses a constant salt when encrypting passwords, simplifying brute force attacks. |
| CVE-2005-0408 | Chain: product generates predictable MD5 hashes using a constant value combined with username, allowing authentication bypass. |

## Real CVEs with this weakness (sample of 12 of 124)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2020-14516 | Use of Password Hash With Insufficient Computational Effort in Rockwell Automation FactoryTalk Services Platform | critical | 10.0 | - | No | 2021-03-18 |
| CVE-2025-3937 | Use of Password Hash with Insufficient Computational Effort | critical | 9.8 | - | No | 2025-05-22 |
| CVE-2024-5743 | Command Injection Vulnerability | critical | 9.8 | - | No | 2025-01-13 |
| CVE-2023-5846 | Use of Password Hash With Insufficient Computational Effort in Franklin Fueling System TS-550 | critical | 9.8 | - | No | 2023-11-02 |
| CVE-2023-34433 | PiiGAB M-Bus Use of Password Hash With Insufficient Computational Effort | critical | 9.8 | - | No | 2023-07-06 |
| CVE-2021-36767 | - | critical | 9.8 | - | No | 2021-10-08 |
| CVE-2021-32519 | QSAN Storage Manager, XEVO, SANOS - Use of Password Hash With Insufficient Computational Effort | critical | 9.8 | - | No | 2021-07-07 |
| CVE-2019-17216 | - | critical | 9.8 | - | No | 2019-10-06 |
| CVE-2018-15680 | - | critical | 9.8 | - | No | 2018-09-05 |
| CVE-2018-10618 | Use of Password Hash With Insufficient Computational Effort in Davolink DVW-3200N | critical | 9.8 | - | No | 2018-08-01 |
| CVE-2017-3962 | McAfee Network Security Management (NSM) - Password recovery exploitation vulnerability | critical | 9.8 | - | No | 2018-06-12 |
| CVE-2005-0408 | - | critical | 9.8 | - | No | 2005-02-16 |

## Related attack patterns (CAPEC)

- [CAPEC-55](https://radicalnotion.ai/capec/capec-55): Rainbow Table Password Cracking

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-327](https://radicalnotion.ai/cwe/cwe-327) | Use of a Broken or Risky Cryptographic Algorithm |
| Parent | [CWE-328](https://radicalnotion.ai/cwe/cwe-328) | Use of Weak Hash |
| Child | [CWE-759](https://radicalnotion.ai/cwe/cwe-759) | Use of a One-Way Hash without a Salt |
| Child | [CWE-760](https://radicalnotion.ai/cwe/cwe-760) | Use of a One-Way Hash with a Predictable Salt |

## Frequently asked questions

### What is CWE-916?

The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.

### What CVEs are caused by CWE-916?

124 recorded CVEs are attributed to CWE-916, including CVE-2020-14516, CVE-2025-3937 and CVE-2024-5743.

### How do you prevent CWE-916?

Use an adaptive hash function that can be configured to change the amount of computational effort needed to compute the hash, such as the number of iterations ("stretching") or the amount of memory required. Some hash functions perform salting automatically. These functions can significantly increase the overhead for a brute force attack compared to intentionally-fast functions such as MD5. For example, rainbow table attacks can become infeasible due to the high computing overhead. Finally, since computing power gets faster and cheaper over time, the technique can be reconfigured to increase the workload without forcing an entire replacement of the algorithm in use.

### How is CWE-916 detected?

Automated Static Analysis - Binary or Bytecode: According to SOAR, the following detection techniques may be useful:

### What are the consequences of CWE-916?

Exploiting CWE-916 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity.

### Is CWE-916 actively exploited?

124 recorded CVEs are caused by CWE-916; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/916.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-916). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
