Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| BURAK | GD::SecurityImage | ≤ 1.75 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | libgd-securityimage-perl | No fix yet | — |
| Debian 12 | libgd-securityimage-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libgd-securityimage-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libgd-securityimage-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libgd-securityimage-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libgd-securityimage-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libgd-securityimage-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libgd-securityimage-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libgd-securityimage-perl | No fix yet | — |