CVE-2025-40931 Affecting libapache-session-perl package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.61% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-LIBAPACHESESSIONPERL-15426511
  • published5 Mar 2026
  • disclosed5 Mar 2026

Introduced: 5 Mar 2026

CVE-2025-40931  (opens in a new tab)

How to fix?

There is no fixed version for Debian:13 libapache-session-perl.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libapache-session-perl package and not the libapache-session-perl package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.

Note that the libapache-session-perl package in some Debian-based Linux distributions may be patched to use Crypt::URandom.