---
title: "CWE-760: Use of a One-Way Hash with a Predictable Salt"
url: https://radicalnotion.ai/cwe/cwe-760
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 uses a predictable 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-760: Use of a One-Way Hash with a Predictable Salt

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 10
- **Of those, in CISA KEV:** 0
- **New in 2026:** 5
- **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 uses a predictable 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 | This makes it easier for attackers to pre-compute the hash value using dictionary attack techniques such as rainbow tables, effectively disabling the protection that an unpredictable salt would provide. |

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

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.

## Detection methods

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

Effectiveness: High

## Observed examples

| CVE | Description |
| --- | --- |
| 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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2020-28214 | Use of a One-Way Hash with a Predictable Salt in Schneider Electric Modicon M221 Programmable Logic Controller | critical | 9.8 | - | No | 2020-12-11 |
| CVE-2023-22599 | Use of a One-Way Hash with a Predictable Salt in InHand Networks InRouter | critical | 9.1 | - | No | 2023-01-12 |
| CVE-2026-121450 | CFNext before 3.1.0 Admin Password Recovery via MD5-Derived Subscription UUID | high | 7.7 | - | No | 2026-11-03 |
| CVE-2024-38881 | - | high | 7.5 | - | No | 2024-08-02 |
| CVE-2026-9370 | ulisesbocchio jasypt-spring-boot Password Hash SimpleGCMConfig.java getSecretKeySaltGenerator hash predictable salt | medium | 6.3 | - | No | 2026-05-24 |
| CVE-2024-13951 | One way hash with predictable salt | medium | 6.1 | - | No | 2025-05-22 |
| CVE-2025-9290 | Authentication Weakness on Omada Controllers, Gateways and Access Points | medium | 6.0 | - | No | 2026-01-22 |
| CVE-2026-46749 | The affected application uses a password hashing implementation with a static, hardcoded salt shared across all users and installations, and is configured with an insufficient number of iterations. This could allow an attacker to efficiently recover user passwords using brute-force or precomputed attacks, potentially resulting in unauthorized access. | medium | 5.0 | - | No | 2026-06-09 |
| CVE-2018-5552 | DocuTrac DTISQLInstaller.exe Hard-Coded Salt | low | 3.3 | - | No | 2018-03-19 |
| CVE-2026-82759 | Reversible IP address pseudonymisation in AshAuthentication audit log hash mode | low | 1.8 | - | No | 2026-09-17 |

## 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-760?

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

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

10 recorded CVEs are attributed to CWE-760, including CVE-2020-28214, CVE-2023-22599 and CVE-2026-121450.

### How do you prevent CWE-760?

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

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

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

Exploiting CWE-760 can lead to: Bypass Protection Mechanism.

### Is CWE-760 actively exploited?

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

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

---

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