Critical
Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha text
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-40916
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 08:26 UTC · Revision 1
Source evidence
Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha text
core-osv · Original sourcePublished 16 Jun 2025, 11:01 UTC
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.
osv:CVE-2025-40916
Complete source record
{
"id": "21ae34dca20c1fe0912696110fdc73308e8f1840e7fd9b64f481ac5a8efdca81",
"url": "https://osv.dev/vulnerability/CVE-2025-40916",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha text",
"summary": "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.",
"evidence": "osv:CVE-2025-40916",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-40916",
"aliases": [
"CVE-2025-40916"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gryphonshafer/mojo-plugin-captchapng",
"type": "GIT",
"events": [
{
"introduced": "f4069779330217c7a59c752be95d79bff472d56d"
},
{
"last_affected": "f4069779330217c7a59c752be95d79bff472d56d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.05"
},
{
"last_affected": "1.05"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
}
],
"versions": [
"1.05",
"v1.05"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40916.json"
}
}
],
"modified": "2026-10-28T02:30:27.260447929Z",
"provider": "osv",
"references": [
"https://cpan.org/modules",
"https://metacpan.org/pod/perlfunc#rand",
"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://security.metacpan.org/docs/guides/random-data-for-security.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40916.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40916",
"https://github.com/gryphonshafer/Mojo-Plugin-CaptchaPNG"
],
"provider_metadata": {
"cwe_ids": [
"CWE-338",
"CWE-804"
],
"cna_assigner": "CPANSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40916.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40916",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493802,
"published_at": "2025-06-16T11:01:08.871+00:00"
}