# CVE-2025-40916: Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha text

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-06-16T11:01:08.871Z
- Modified: 2026-06-17T09:22:17.377Z
- Weaknesses: CWE-338, CWE-804
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Mojolicious-Plugin-CaptchaPNG: 1.05

## References

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

## Sources

- CVE List: [CVE-2025-40916](https://www.cve.org/CVERecord?id=CVE-2025-40916), CVE Terms of Use, modified 2025-06-16
- NVD: [CVE-2025-40916](https://nvd.nist.gov/vuln/detail/CVE-2025-40916), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40916 · Whole record: https://cve.day/CVE-2025-40916.json · Rebuilt by cve.day 2026-11-25T22:58:59.239Z
