---
id: CVE-2025-40933
title: >-
  Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids
  insecurely.


  Session ids are generated using an MD5 hash of the epoch time and a call to
  the built-in rand function
summary: >-
  Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids
  insecurely.


  Session ids are generated using an MD5 hash of the epoch time and a call to
  the built-in rand function. The epoch time may be guessed, if it is not lea…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-338
  - CWE-340
published: '2025-09-17'
updated: '2026-09-26'
sourceUpdated: '2026-09-26T00:10:00.127'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40933'
references:
  - url: >-
      https://metacpan.org/release/KGOLDOV/Apache2-AuthAny-0.201/source/lib/Apache2/AuthAny/Cookie.pm
    label: 9b29abf9-4ab0-4765-b253-1875cd9b441e
tags:
  - nvd
epss: 0.0041
epssPercentile: 0.3254
ingestedAt: '2026-09-26T00:22:39.930Z'
---

## Overview

Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids insecurely.

Session ids are generated using an MD5 hash of the epoch time and a call to the built-in rand function. 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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
