CVE-2026-47372

Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts

Published May 20, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts.

These versions use the built-in rand function, which is predictable and unsuitable for cryptography.

Analysis

AI-generated

Technical impact

Crypt::SaltedHash, a Perl module produced by RRWO, creates salts for hashing using Perl's built‑in rand function. This function is intended for non‑cryptographic uses and produces predictable values, violating the requirement for cryptographic randomness. The result is that salts can be guessed or reproduced, which weakens the uniqueness of salted hashes and can allow attackers to pre‑compute or brute‑force hash values, undermining the confidentiality of protected data. This weakness is identified as CWE‑338: Insecure Random Number Generation.

Affected Systems

The issue impacts all deployments of Crypt::SaltedHash version 0.09 or earlier, including the default Perl distributions that bundle this module. Any application that imports this module to hash passwords, tokens, or other sensitive material is affected.

Risk and Exploitability

The CVSS score of 9.1 reflects a high severity level. The EPSS score is < 1%, indicating that the probability of exploitation is presently low. The vulnerability is not listed in CISA's KEV catalog, but this absence does not diminish its potential impact. Based on the description, it is inferred that the attack vector is local or script‑based within the application that uses the module. If an attacker can manipulate or observe the hashing process, they could predict or reproduce the salt, enabling efficient offline attacks against stored credentials.

Remediation

Vendor Solution

Upgrade to version 0.10 or later.


OpenCVE Recommended Actions

  • Upgrade Crypt::SaltedHash to version 0.10 or later, which replaces the rand function with a cryptographically secure source
  • Verify that no older versions coexist in the environment; remove or exclude them from the module search path
  • If an immediate upgrade is not possible, patch or replace the module to use a secure random number generator such as Crypt::URandom or a third‑party library

Generated by OpenCVE AI on May 21, 2026 at 16:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8418-1 Crypt-SaltedHash vulnerability
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rrwo
Rrwo crypt::saltedhash
Vendors & Products Rrwo
Rrwo crypt::saltedhash
Type Values Removed Values Added
Description Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts. These versions use the built-in rand function, which is predictable and unsuitable for cryptography.
Title Crypt::SaltedHash versions through 0.09 for Perl generate insecure random values for salts
Weaknesses CWE-338
References
Weaknesses
  • CWE-338

    Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
May 21, 2026, 2:12 PM
Reserved
May 19, 2026, 4:17 PM
Status
Deferred
Published
May 20, 2026, 10:16 PM
Modified
Jul 20, 2026, 8:10 PM