Security Advisories (1)
CVE-2025-40931 (2026-03-05)

Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id. Apache::Session::Generate::MD5 generates session ids insecurely. The default session id generator returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. Predicable session ids could allow an attacker to gain access to systems.

NAME

Apache::Session::Generate::ModUniqueId - mod_unique_id for session ID generation

SYNOPSIS

use Apache::Session::Flex;

tie %session, 'Apache::Session::Flex', $id, {
     Store     => 'MySQL',
     Lock      => 'Null',
     Generate  => 'ModUniqueId',
     Serialize => 'Storable',
};

DESCRIPTION

Apache::Session::Generate::ModUniqueId enables you to use unique id generated by mod_unique_id as session id for Apache::Session framework. Using mod_unique_id would ensure higher level uniquess of id.

AUTHOR

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Apache::Session, Apache::Session::Flex, mod_unique_id