CVE-2026-13082GD::SecurityImage versions through 1.75 for Perl use rand to generate secrets
GD::SecurityImage versions through 1.75 for Perl use rand to generate secrets. The random method creates the challenge text used for the CAPTCHA by sampling characters from an array using Perl's built-in rand function, and generates a (by default) six-character string. The built-in rand function is unsuitable for security applications because it is predictable and reversible.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libgd-securityimage-perl | Fix pending | UBUNTU-CVE-2026-13082 | |
| Ubuntu 26.04 | libgd-securityimage-perl | Under investigation | UBUNTU-CVE-2026-13082 | |
| Ubuntu 24.04 | libgd-securityimage-perl | Under investigation | UBUNTU-CVE-2026-13082 | |
| Ubuntu 22.04 | libgd-securityimage-perl | Under investigation | UBUNTU-CVE-2026-13082 | |
| Ubuntu 20.04 | libgd-securityimage-perl | Fix pending | UBUNTU-CVE-2026-13082 | |
| Ubuntu 18.04 | libgd-securityimage-perl | Fix pending | UBUNTU-CVE-2026-13082 | |
| Ubuntu 16.04 | libgd-securityimage-perl | Fix pending | UBUNTU-CVE-2026-13082 | |
| Debian 13 | libgd-securityimage-perl | Fix pending | DEBIAN-CVE-2026-13082 | |
| Debian 12 | libgd-securityimage-perl | Fix pending | DEBIAN-CVE-2026-13082 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- BURAK GD::SecurityImage: affected: up to 1.75
Workaround: GD::SecurityImage has not been updated since 2018, the module is flagged as ADOPTME on CPAN, and the git repository is archived as read-only, which prevents issues and pull requests from being created. Users are advised to find an alternative solution. For users who are unable to migrate to an alternative, install Crypt::URandom::MonkeyPatch (which will override the built-in rand with a wrapper around Crypt::URandom) and apply the patch.
Vendor advisories:
References
- https://www.cve.org/CVERecord?id=CVE-2025-40916
- https://security.metacpan.org/patches/G/GD-SecurityImage/1.75/CVE-2026-13082-r1.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.