CWE-759: Use of a One-Way Hash without a Salt
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.
Last updated
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.
Last updated
CWE-759 (Use of a One-Way Hash without a Salt) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
In cryptography, salt refers to some random addition of data to an input before hashing to make dictionary attacks more difficult.
16 recorded CVEs are caused by CWE-759 (Use of a One-Way Hash without a Salt). The highest-severity and most recent are shown first. 8 new CWE-759 CVEs have been recorded so far in 2026 (4 in 2025).
Predictable Salt and Weak Hashing Algorithm
Multiple Vulnerabilities in IBM Concert Software.
B. Braun SpaceCom, Battery Pack SP with Wi-Fi, and Data module compactplus
Use of a One-Way Hash without a Salt in GE Digital APM Classic
A vulnerability has been identified in LOGO! Soft Comfort (All versions < V9). The project...
Weak Credential Protection During TP-Link Omada Device Adoption
FluentCRM - Marketing Automation For WordPress <= 2.8.01 - Insufficient Use of Hash as Authorization Control
Information Disclosure in Pik Online Software's Portal
IBM Integrated Analytics System (IIAS) is affected by a predictable salt vulnerability in Magneto component
WeGIA: Use of Weak Password Hashing Algorithm (SHA-256, no salt) in html/login.php
Use of a One-Way Hash without a Salt in OnlineVotingSystem
Weak Credential Storage in TP-Link Omada Devices
Showing 12 of 16 recorded CWE-759 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-759 is exploited.
Bypass Protection Mechanism, Gain Privileges or Assume Identity
Affects: Access Control
Typically introduced during these phases of the software lifecycle.
Practical mitigations for CWE-759, grouped by where in the lifecycle they apply.
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 [1], scrypt [2], and PBKDF2 [3]. 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.
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.
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.
According to SOAR [18], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [18], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [18], the following detection techniques may be useful:
Highly cost effective:
Effectiveness: High
According to SOAR [18], the following detection techniques may be useful:
Highly cost effective:
Effectiveness: High
According to SOAR [18], the following detection techniques may be useful:
Cost effective for partial coverage:
Effectiveness: SOAR Partial
According to SOAR [18], the following detection techniques may be useful:
Highly cost effective:
Cost effective for partial coverage:
Effectiveness: High
MITRE examples of the weakness in code.
In both of these examples, a user is logged in if their given password matches a stored password:
Vulnerable example
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();
}
}Vulnerable example
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).
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.
Vulnerable example
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)Safe example
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)Real CVEs that MITRE cites as examples of this weakness.
Common questions about CWE-759.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-759 CVE affects your products, with AI-written analysis and remediation steps.