Description
Data::Entropy versions before 0.010 for Perl read remote entropy sources over plain HTTP.
The Data::Entropy::RawSource::RandomOrg and Data::Entropy::RawSource::RandomnumbersInfo remote sources are accessed over plain HTTP.
The Data::Entropy::RawSource::RandomOrg integrity check trivially matches any non-empty byte string.
Any on-path attacker, such as open WiFi, a compromised ISP, captive portal, or a hostile egress proxy substitutes the response and thereby chooses the bytes returned by rand_bits and rand_int for every application that selected one of these sources via with_entropy_source. The _checkbuf method response is equally attacker-controlled, so the retry/sleep behaviour is steerable too.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| RRWO | Data::Entropy | < 0.010 | 0.010 |
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 14 | libdata-entropy-perl | No fix yet | — |
| Debian 13 | libdata-entropy-perl | No fix yet | — |
| Debian 12 | libdata-entropy-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libdata-entropy-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libdata-entropy-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libdata-entropy-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libdata-entropy-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libdata-entropy-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libdata-entropy-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libdata-entropy-perl | No fix yet | — |
References
- https://github.com/robrwo/Data-Entropy/security/advisories/GHSA-845w-rcqw-jwvv vendor-advisory
- https://metacpan.org/release/RRWO/Data-Entropy-0.010/changes release-notes
- https://metacpan.org/release/RRWO/Data-Entropy-0.008/view/lib/Data/Entropy.pm#STATUS
- https://security.metacpan.org/docs/guides/random-data-for-security.html technical-description