{"id":"UBUNTU-CVE-2025-40932","details":"Apache::SessionX versions through 2.01 for Perl create insecure session id. Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 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.","modified":"2026-05-20T16:23:24.649520653Z","published":"2026-02-27T00:16:00Z","upstream":["CVE-2025-40932"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-40932"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-40932"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/37425045/"},{"type":"REPORT","url":"https://metacpan.org/release/GRICHTER/Apache-SessionX-2.01/source/SessionX/Generate/MD5.pm#L29"}],"affected":[{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-5","2.01-6"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-6"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}},{"package":{"name":"libapache-sessionx-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libapache-sessionx-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.01-6"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-sessionx-perl","binary_version":"2.01-6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40932.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}