UBUNTU-CVE-2025-40931

Source
https://ubuntu.com/security/CVE-2025-40931
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-40931
Upstream
Published
2026-03-05T02:16:00Z
Modified
2026-05-20T16:23:24.433636274Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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

Affected packages

Ubuntu:16.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.93-2
1.93-2ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.93-2ubuntu1",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:18.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.93-2ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.93-2ubuntu1",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:20.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.93-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.93-3",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:22.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.94-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.94-1",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:24.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.94-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.94-2",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:25.10
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.94-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.94-2",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"
Ubuntu:26.04:LTS
libapache-session-perl

Package

Name
libapache-session-perl
Purl
pkg:deb/ubuntu/libapache-session-perl?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.94-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.94-2",
            "binary_name": "libapache-session-perl"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40931.json"