---
title: "CWE-759: Use of a One-Way Hash without a Salt"
url: https://radicalnotion.ai/cwe/cwe-759
type: cwe
description: "The product uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the product does not also use a salt as part of the input."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-759: Use of a One-Way Hash without a Salt

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

## Description

The product uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the product does not also use a salt as part of the input.

## Background

In cryptography, salt refers to some random addition of data to an input before hashing to make dictionary attacks more difficult.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | 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 | - |

## 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.

Effectiveness: High. 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.

### Architecture and Design

If a technique that requires extra computational effort can not be implemented, then for each password that is processed, generate a new random salt using a strong random number generator with unpredictable seeds. Add the salt to the plaintext password before hashing it. When storing the hash, also store the salt. Do not use the same salt for every password.

Effectiveness: Limited. Despite common perceptions, the use of a good salt with a hash does not sufficiently increase the workload for a targeted attack against an individual hash (such as the password for a critical person). In general, salts are less effective than other hashing techniques such as increasing the computation time or memory overhead with adaptive hash functions. 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 with cloud-based services) or specialized hardware such as GPU, ASIC, or FPGA, which may be inexpensive. See CWE-916 for more details.

### 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 both of these examples, a user is logged in if their given password matches a stored password:

Bad code:

```c
unsigned char *check_passwd(char *plaintext) {
    ctext = simple_digest("sha1",plaintext,strlen(plaintext), ... );
    //Login if hash matches stored hash
    if (equal(ctext, secret_password())) {
        login_user();
    }
}
```

Bad code:

```java
String plainText = new String(plainTextIn);
MessageDigest encer = MessageDigest.getInstance("SHA");
encer.update(plainTextIn);
byte[] digest = password.digest();
//Login if hash matches stored hash
if (equal(digest,secret_password())) {
    login_user();
}
```

This code relies exclusively on a password mechanism (CWE-309) using only one factor of authentication (CWE-308). If an attacker can steal or guess a user's password, they are given full access to their account. Note this code also uses SHA-1, which is a weak hash (CWE-328). It also does not use a salt (CWE-759).

### Example 2

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. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-10205 | Predictable Salt and Weak Hashing Algorithm | high | 8.7 | - | No | 2025-09-17 |
| CVE-2025-36253 | Multiple Vulnerabilities in IBM Concert Software. | high | 7.5 | - | No | 2026-02-02 |
| CVE-2020-25164 | B. Braun SpaceCom, Battery Pack SP with Wi-Fi, and Data module compactplus | high | 7.5 | - | No | 2022-04-14 |
| CVE-2020-16244 | Use of a One-Way Hash without a Salt in GE Digital APM Classic | high | 7.2 | - | No | 2020-09-23 |
| CVE-2026-129178 | U.S Department of the Interior Unstable Slope Management Program unsalted MD5 hash for password storage | high | 7.1 | - | No | 2026-11-20 |
| CVE-2026-57263 | A vulnerability has been identified in LOGO! Soft Comfort (All versions \< V9). The project... | high | 7.0 | - | No | 2026-08-11 |
| CVE-2025-15544 | Weak Credential Protection During TP-Link Omada Device Adoption | medium | 6.9 | - | No | 2026-08-03 |
| CVE-2023-1430 | FluentCRM - Marketing Automation For WordPress \<= 2.8.01 - Insufficient Use of Hash as Authorization Control | medium | 6.5 | - | No | 2023-06-09 |
| CVE-2026-6217 | Information Disclosure in Pik Online Software's Portal | medium | 6.3 | - | No | 2026-09-04 |
| CVE-2025-36271 | IBM Integrated Analytics System (IIAS) is affected by a predictable salt vulnerability in Magneto component | medium | 5.9 | - | No | 2026-08-28 |
| CVE-2026-45027 | WeGIA: Use of Weak Password Hashing Algorithm (SHA-256, no salt) in html/login.php | medium | 5.9 | - | No | 2026-05-27 |
| CVE-2021-21253 | Use of a One-Way Hash without a Salt in OnlineVotingSystem | medium | 5.8 | - | No | 2021-01-21 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-916](https://radicalnotion.ai/cwe/cwe-916) | Use of Password Hash With Insufficient Computational Effort |

## Frequently asked questions

### What is CWE-759?

The product uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the product does not also use a salt as part of the input.

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

17 recorded CVEs are attributed to CWE-759, including CVE-2025-10205, CVE-2025-36253 and CVE-2020-25164.

### How do you prevent CWE-759?

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-759 detected?

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

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

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

### Is CWE-759 actively exploited?

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

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

---

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