CVE-2026-16235 PUBLISHED

Crypt::Password versions through 0.28 for Perl generate insecure random values for salts

Assigner: CPANSec
Reserved: 19.07.2026 Published: 20.07.2026 Updated: 20.07.2026

Crypt::Password versions through 0.28 for Perl generate insecure random values for salts.

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

Product Status

Vendor DRSTEVE
Product Crypt::Password
Versions Default: unaffected
  • affected from 0 to 0.28 (incl.)

Workarounds

Users can generate a salt manually using a module such as Crypt::URandom::Token, and pass the salt directly to the password and crypt_password methods.

This module has not been updated since 2012.

Users should migrate to an alternative solution.

References

Problem Types

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