#1143264 libdata-entropy-perl: CVE-2026-18536

Package:
src:libdata-entropy-perl
Source:
src:libdata-entropy-perl
Submitter:
Salvatore Bonaccorso
Date:
2026-11-06 17:15:02 UTC
Severity:
normal
Tags:
#1143264#5
Date:
2026-08-01 18:29:52 UTC
From:
To:
Hi,

The following vulnerability was published for libdata-entropy-perl.

CVE-2026-18536[0]:
| 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.

FWIW, the module is deprecated, should we aim to try to remove it for
the forky release? It won't be immediately possible due to reverse
depends using it but maybe we should still fill an RC level bug 'do
not release with forky' and the reverse dependencies having a switch
to more suitable modules.

If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-18536
https://www.cve.org/CVERecord?id=CVE-2026-18536
[1] https://lists.security.metacpan.org/cve-announce/msg/42317754/
[2] https://github.com/robrwo/Data-Entropy/security/advisories/GHSA-845w-rcqw-jwvv

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1143264#10
Date:
2026-11-06 12:05:17 UTC
From:
To:
Hi Salvatore,

Salvatore Bonaccorso, on 2026-08-01:

This looks viable, I identified via `apt rdepends` and
`build-rdeps` that the only consumers of libdata-entropy-perl in
unstable look to be currently libdancer2-plugin-passphrase-perl
and zoneminder.  I don't know for sure how to check for uses in
autopkgtest d/t/control file apart from using brute force.

I opened #1153221 against zoneminder in order to document that
upcoming upstream versions are going to drop the need for
Data::Entropy, though that doesn't appear to be part of an
existing release yet.

I opened #1153225 against libdancer2-plugin-passphrase-perl to
document some ideas that might help migrate away from
Data::Entropy, which were published by another reporter to
upstream issue tracker initially.

Both reports are currently rated "important", to align with the
present report.  I guess they could be made blockers of an
eventual removal request?

In hope this helps,

#1143264#15
Date:
2026-11-06 17:13:44 UTC
From:
To:
Hi Étienne,

Thank you sounds all good.

Regards,
Salvatore