{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "Plack::Middleware::Session::Simple versions through 0.04 for Perl generates session ids insecurely. The default session id generator returns a SHA-1 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. Plack::Middleware::Session::Simple is intended to be compatible with Plack::Middleware::Session, which had a similar security issue CVE-2025-40923.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-Plack-Middleware-Session-Simple-2025-40926 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-plack-middleware-session-simple-2025-40926.json" }, { "category": "external", "summary": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/commit/760bb358b8f53e52cf415888a4ac858fd99bb24e.patch", "url": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/commit/760bb358b8f53e52cf415888a4ac858fd99bb24e.patch" }, { "category": "external", "summary": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/pull/4", "url": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/pull/4" }, { "category": "external", "summary": "https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.04/source/lib/Plack/Middleware/Session/Simple.pm#L43", "url": "https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.04/source/lib/Plack/Middleware/Session/Simple.pm#L43" }, { "category": "external", "summary": "https://security.metacpan.org/docs/guides/random-data-for-security.html", "url": "https://security.metacpan.org/docs/guides/random-data-for-security.html" }, { "category": "external", "summary": "https://www.cve.org/CVERecord?id=CVE-2025-40923", "url": "https://www.cve.org/CVERecord?id=CVE-2025-40923" }, { "category": "external", "summary": "CVE-2025-40926 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-40926" } ], "title": "Plack-Middleware-Session-Simple vulnerability", "tracking": { "current_release_date": "2026-03-05T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-Plack-Middleware-Session-Simple-2025-40926", "initial_release_date": "2026-03-05T00:00:00", "revision_history": [ { "date": "2026-03-05T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<0.05", "product": { "name": "Plack-Middleware-Session-Simple less than 0.05", "product_id": "CSAFPID-0001", "product_identification_helper": { "purl": "pkg:cpan/Plack-Middleware-Session-Simple" } } }, { "category": "product_version_range", "name": "vers:cpan/>=0.05", "product": { "name": "Plack-Middleware-Session-Simple greater than or equal 0.05", "product_id": "CSAFPID-0002", "product_identification_helper": { "purl": "pkg:cpan/Plack-Middleware-Session-Simple" } } } ], "category": "product_name", "name": "Plack-Middleware-Session-Simple" } ] }, "vulnerabilities": [ { "cve": "CVE-2025-40926", "cwe": { "id": "CWE-338", "name": "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)" }, "notes": [ { "category": "description", "text": "Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely.\n\nThe default session id generator returns a SHA-1 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.\n\nPredictable session ids could allow an attacker to gain access to systems.\n\nPlack::Middleware::Session::Simple is intended to be compatible with Plack::Middleware::Session, which had a similar security issue CVE-2025-40923.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 9.8, "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }