CVE-2025-40916CRITICAL 9.1EPSS p24.9%

CVE-2025-40916CVE-2025-40916

Description

Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha. That version uses the built-in rand() function for generating the captcha text as well as image noise, which is insecure.

Scoring

CVSS 3.19.1 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS0.33% probability of exploitation · percentile 24.9% · 2026-06-19T12:03:05Z
Published2025-06-16
Last modified2026-04-15

Underlying weaknesses· 2

CWE-338CWE-804

References

  1. https://metacpan.org/pod/perlfunc#rand
  2. https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CaptchaPNG-1.04/diff/GRYPHON/Mojolicious-Plugin-CaptchaPNG-1.05/lib/Mojolicious/Plugin/CaptchaPNG.pm
  3. https://metacpan.org/release/GRYPHON/Mojolicious-Plugin-CaptchaPNG-1.06/changes
  4. https://security.metacpan.org/docs/guides/random-data-for-security.html

2

TypeTargetConfidenceTier
WeaknessUse of Cryptographically Weak Pseudo-Random Number Generator (PRNG)cwe-3380%live
WeaknessGuessable CAPTCHAcwe-8040%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2024-58135
CVE
CVE-2025-1828
CVE
CVE-2026-47372
CVE
CVE-2025-15604
CVE
CVE-2025-40931
CVE
CVE-2025-40926
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.