{
  "id": "CVE-2025-40926",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40926",
  "published_at": "2026-03-05T01:24:34.151Z",
  "title": "Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely",
  "vendor": "KAZEBURO",
  "product": "Plack::Middleware::Session::Simple",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-340",
  "cpes": [
    "cpe:2.3:a:kazeburo:plack\\:\\:middleware\\:\\:session\\:\\:simple:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "KAZEBURO",
        "product": "Plack::Middleware::Session::Simple",
        "ranges": [
          "\u003c 0.05"
        ],
        "fixed_in": [
          "0.05"
        ]
      }
    ],
    "solutions": [
      "Users are advised to upgrade to version 0.05 or later."
    ],
    "upgrade": [
      "Upgrade Plack::Middleware::Session::Simple to 0.05 or later."
    ],
    "workarounds": [
      "Users are advised to change the sid_generator attribute of Plack::Middleware::Session::Simple to a function that returns a securely generated session id based on a secure source of entropy from the system.\n\nUsers may consider using Plack::Middleware::Session version 0.35 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/pull/4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/kazeburo/Plack-Middleware-Session-Simple/commit/760bb358b8f53e52cf415888a4ac858fd99bb24e.patch"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://www.cve.org/CVERecord?id=CVE-2025-40923"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.05/changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
