Home

Description

Solstice::Session versions through 1440 for Perl generates session ids insecurely. The _generateSessionID method returns an MD5 digest seeded by the epoch time, a random hash reference, a call to the built-in rand() function and the process id. The same method is used in the _generateID method in Solstice::Subsession, which is part of the same distribution. The epoch time may be guessed, if it is not leaked in the HTTP Date header. Stringified hash refences will contain predictable content. The built-in rand() function is seeded by 16-bits and is unsuitable for security purposes. The process id comes from a small set of numbers. Predictable session ids could allow an attacker to gain access to systems.

PUBLISHED Reserved 2026-03-28 | Published 2026-04-13 | Updated 2026-04-13 | Assigner CPANSec

Problem types

CWE-340 Generation of Predictable Numbers or Identifiers

CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator

Product status

Default status
unaffected

Any version
affected

References

www.openwall.com/lists/oss-security/2026/04/13/2

metacpan.org/dist/Solstice/source/lib/Solstice/Session.pm

metacpan.org/dist/Solstice/source/lib/Solstice/Subsession.pm

security.metacpan.org/...uides/random-data-for-security.html technical-description

cve.org (CVE-2026-5085)

nvd.nist.gov (CVE-2026-5085)

Download JSON