{
  "id": "CVE-2025-40923",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40923",
  "published_at": "2025-07-16T13:05:03.782Z",
  "title": "Plack-Middleware-Session before version 0.35 for Perl generates session ids insecurely",
  "vendor": "MIYAGAWA",
  "product": "Plack::Middleware::Session",
  "cvss": {
    "score": 7.3,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  },
  "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 before version 0.35 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\nPredicable session ids could allow an attacker to gain access to systems.",
  "cwe": "CWE-340",
  "cvss_by_source": {
    "cisa-adp": 7.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "MIYAGAWA",
        "product": "Plack::Middleware::Session",
        "ranges": [
          "\u003e= 0.01, \u003c 0.35"
        ],
        "fixed_in": [
          "0.35"
        ]
      }
    ],
    "solutions": [
      "Users are advised to upgrade to Plack-Middleware-Session v0.35 or later."
    ],
    "upgrade": [
      "Upgrade Plack::Middleware::Session to 0.35 or later."
    ],
    "workarounds": [
      "Users who are unable to upgrade are advised to change the sid_generator attribute of Plack::Session::State to a function that returns a securely generated session id based on a secure source of entropy from the system."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/plack/Plack-Middleware-Session/pull/52"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/plack/Plack-Middleware-Session/commit/1fbfbb355e34e7f4b3906f66cf958cedadd2b9be.patch"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
