CVEfocus › CVE database › CVE-2026-13082

CVE-2026-13082GD::SecurityImage versions through 1.75 for Perl use rand to generate secrets

CVSS 5.3 MediumEPSS 0.3% (higher than 16% of CVEs)Published 2026-07-17Updated 2026-07-17Assigner: CPANSec

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.

CWE-338CWE-804

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

6Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libgd-securityimage-perlFix pendingUBUNTU-CVE-2026-13082
Ubuntu 26.04libgd-securityimage-perlUnder investigationUBUNTU-CVE-2026-13082
Ubuntu 24.04libgd-securityimage-perlUnder investigationUBUNTU-CVE-2026-13082
Ubuntu 22.04libgd-securityimage-perlUnder investigationUBUNTU-CVE-2026-13082
Ubuntu 20.04libgd-securityimage-perlFix pendingUBUNTU-CVE-2026-13082
Ubuntu 18.04libgd-securityimage-perlFix pendingUBUNTU-CVE-2026-13082
Ubuntu 16.04libgd-securityimage-perlFix pendingUBUNTU-CVE-2026-13082
Debian 13libgd-securityimage-perlFix pendingDEBIAN-CVE-2026-13082
Debian 12libgd-securityimage-perlFix pendingDEBIAN-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.

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

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.