CVE catalog

CVE-2026-2474

libcrypt-urandom-perl: CVE-2026-2474

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.34% · Oct 27, 2026

Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function crypt_urandom_getrandom(). The function does not validate that the length parameter is non-negative. If a negative value (e.g. -1) is supplied, the expression length + 1u causes an integer wraparound, resulting in a zero-byte allocation. The subsequent call to getrandom(data, length, GRND_NONBLOCK) passes the original negative value, which is implicitly converted to a large unsigned value (typically SIZE_MAX). This can result in writes beyond the allocated buffer, leading to heap memory corruption and application crash (denial of service). In common usage, the length argument is typically hardcoded by the caller, which reduces the likelihood of attacker-controlled exploitation. Applications that pass untrusted input to this parameter may be affected.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibcrypt-urandom-perlsid0.55-1fixed
Debianlibcrypt-urandom-perlforky0.55-1fixed
Debianlibcrypt-urandom-perltrixie0.54-1+deb13u1fixed
Debianlibcrypt-urandom-perlbookworm0.36-3not affected
Alpineperl-crypt-urandom3.240.55-r0fixed
Suseperl-Crypt-URandomlinux enterprise server 12 sp5-ltss0.550.0-1.6.1fixed
Suseperl-Crypt-URandomlinux enterprise server ltss extended security 12 sp50.550.0-1.6.1fixed
Opensuseperl-Crypt-URandomtumbleweed0.550.0-1.1fixed
Ubuntulibcrypt-urandom-perl25.100.54-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibcrypt-urandom-perlsourcesid0.55-1not yet assignedNot reportedNot reported
Debianlibcrypt-urandom-perlsourceforky0.55-1not yet assignedNot reportedNot reported
Debianlibcrypt-urandom-perlsourcetrixie0.54-1+deb13u1not yet assignedNot reportedNot reported
Debianlibcrypt-urandom-perlsourcebookwormNot affectedunimportantNot reportedNot reported
Alpineperl-crypt-urandomapk3.240.55-r0Not reportedALPINE-CVE-2026-2474Not reported
Suseperl-Crypt-URandomrpmlinux enterprise server 12 sp5-ltss0.550.0-1.6.1Not reportedSUSE-SU-2026:1170-1Not reported
Suseperl-Crypt-URandomrpmlinux enterprise server ltss extended security 12 sp50.550.0-1.6.1Not reportedSUSE-SU-2026:1170-1Not reported
Opensuseperl-Crypt-URandomrpmtumbleweed0.550.0-1.1Not reportedOPENSUSE-SU-2026:10414-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libcrypt-urandom-perl]Not affected
    Details (2)
    • 0.36-3 · all · bookworm

      Not affected

      dsa · libcrypt-urandom-perl · debian · bookworm

    • 0.36-3 · all · bookworm

      Not affected

      dsa · libcrypt-urandom-perl · debian · bookworm

[Debian 13 (Trixie)]

  • Details (2)
    • 0.54-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 0.54-1+deb13u1

      dsa · libcrypt-urandom-perl · debian · 13

    • 0.54-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 0.54-1+deb13u1

      dsa · libcrypt-urandom-perl · debian · 13

[openSUSE Tumbleweed]

  • Source package: [perl-Crypt-URandom]

    Details (1)
    • 0.550.0-1.4 · x86_64 · tumbleweed

      Fixed · Fixed: 0.550.0-1.1

      dsa · perl-Crypt-URandom · opensuse · tumbleweed

Observed:

References