libcatalyst-plugin-session-perl — security advisory
Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely. The session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Catalyst context. This information is of low entropy. 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.
- Products
- libcatalyst-plugin-session-perl
- Affected versions
- 0.40-1, 0.41-1, 0.43-1, 0.44-1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-40924
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:27 UTC · Revision 1
Source evidence
Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely. The session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Catalyst context. This information is of low entropy. 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.
osv:UBUNTU-CVE-2025-40924
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
libcatalyst-plugin-session-perl
Fixed versions: Not specified
Complete source record
{
"id": "261c900f5fe8221a191923eec98ee8e350d885a4db8e5c5e305ce76adbee147e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-40924",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-40924",
"summary": "Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely. The session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Catalyst context. This information is of low entropy. 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.",
"evidence": "osv:UBUNTU-CVE-2025-40924",
"products": [
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.40-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.40-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.41-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.41-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.43-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.43-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.44-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libcatalyst-plugin-session-perl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.43-1",
"evidence": "/affected/7/versions"
},
{
"value": "0.44-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-40924",
"aliases": [
"UBUNTU-CVE-2025-40924"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.40-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.40-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.40-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.40-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.41-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.41-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.41-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.41-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.43-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.43-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.43-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.43-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.44-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.44-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcatalyst-plugin-session-perl",
"purl": "pkg:deb/ubuntu/libcatalyst-plugin-session-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.43-1",
"0.44-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-40924.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcatalyst-plugin-session-perl",
"binary_version": "0.44-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:51.008065570Z",
"provider": "osv",
"upstream": [
"CVE-2025-40924"
],
"references": [
"https://ubuntu.com/security/CVE-2025-40924",
"https://www.cve.org/CVERecord?id=CVE-2025-40924",
"https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/c0e2b4ab1e42ebce1008286db8c571b6ee98c22c.patch",
"https://github.com/perl-catalyst/Catalyst-Plugin-Session/pull/5",
"https://metacpan.org/release/HAARG/Catalyst-Plugin-Session-0.43/source/lib/Catalyst/Plugin/Session.pm#L632"
]
},
"related_cves": [
{
"value": "CVE-2025-40924",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356459,
"published_at": "2025-07-17T14:15:00+00:00"
}