Skip to main content
VulnerabilityPublished Updated

CVE-2025-40931: Libapache session perl · Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure

Affects libapache-session-perlSource GCVE Database

0
Authoritative record:CVE-2025-40931· Critical 9.1

Not known to be exploited · CVSS 9.1 Critical.

Data as of 28 Oct 2026, 22:28 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10libapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=stonkingOther threatsAffected
  • =1.94-2
Fixed in–
Ubuntu 26.04 LTSlibapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=resoluteOther threatsAffected
  • =1.94-2
Fixed in–
Ubuntu 25.10libapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=questingOther threatsAffected
  • =1.94-2
Fixed in–
Ubuntu 24.04 LTSlibapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=nobleOther threatsAffected
  • =1.94-2
Fixed in–
Ubuntu 22.04 LTSlibapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=jammyOther threatsAffected
  • =1.94-1
Fixed in–
Ubuntu 20.04 LTSlibapache-session-perlpkg:deb/ubuntu/libapache-session-perl?arch=source&distro=focalOther threatsAffected
  • =1.93-3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…