BreachSpiderVerified, not vibes

CVE-2025-40916 in Captcha products

Critical 9.1

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.

Affects 0 products from 3 vendors. Facts below cite their sources.

CVSS 3.19.1
EPSS0.8%
EPSS percentile54th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Captcha — —
Mojolicious — —
Plugin — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40916
BreachSpider IDBS-2025-GLOBAL-259418-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2025-06-16
Last modified2026-04-15
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-338: CWE-338

CWE-804: CWE-804

Analysis AI-written, not human-reviewed

Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses an insecure random number source (rand() function) for generating captcha text and image noise, which can be exploited to predict captcha values.

An attacker can exploit the weak randomness of the rand() function to predict captcha values, potentially bypassing the captcha mechanism and gaining unauthorized access to protected resources.

Questions

What is CVE-2025-40916?

Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses an insecure random number source (rand() function) for generating captcha text and image noise, which can be exploited to predict captcha values.

What is the CVSS score for CVE-2025-40916?

CVE-2025-40916 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.8%.

Is CVE-2025-40916 actively exploited?

No confirmed active exploitation of CVE-2025-40916 as of 2026-05-30.

How do I remediate CVE-2025-40916?

Priority: IMMEDIATE.

What systems are affected by CVE-2025-40916?

CVE-2025-40916 affects Captcha; Mojolicious; Plugin.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Captcha","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.