Vulnerabilites related to perl - Crypt::Random
cve-2025-1828
Vulnerability from cvelistv5
Published
2025-03-10 23:51
Modified
2025-03-26 01:33
Summary
Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions. If the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available Crypt::Random will default to use the insecure Crypt::Random::rand provider. In particular, Windows versions of perl will encounter this issue by default.
Impacted products
Vendor Product Version
perl Crypt::Random Version: 1.05   < 1.56
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  cvssV3_1: {
                     attackComplexity: "LOW",
                     attackVector: "NETWORK",
                     availabilityImpact: "HIGH",
                     baseScore: 8.8,
                     baseSeverity: "HIGH",
                     confidentialityImpact: "HIGH",
                     integrityImpact: "HIGH",
                     privilegesRequired: "NONE",
                     scope: "UNCHANGED",
                     userInteraction: "REQUIRED",
                     vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                     version: "3.1",
                  },
               },
               {
                  other: {
                     content: {
                        id: "CVE-2025-1828",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "total",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2025-03-11T02:20:07.985063Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2025-03-11T02:20:43.618Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               packageName: "Crypt-Random",
               product: "Crypt::Random",
               programFiles: [
                  "lib/Crypt/Random/Provider/rand.pm",
               ],
               vendor: "perl",
               versions: [
                  {
                     lessThan: "1.56",
                     status: "affected",
                     version: "1.05",
                     versionType: "custom",
                  },
               ],
            },
         ],
         credits: [
            {
               lang: "en",
               type: "finder",
               value: "Robert Rothenberg (RRWO)",
            },
         ],
         descriptions: [
            {
               lang: "en",
               supportingMedia: [
                  {
                     base64: false,
                     type: "text/html",
                     value: "Crypt::Random Perl package 1.05 through 1.55 may use rand() function,&nbsp;<span style=\"background-color: rgb(255, 255, 255);\">which is not</span><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;cryptographically strong,</span>&nbsp;for cryptographic functions.<br><br>If the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available&nbsp;Crypt::Random will default to use the insecure&nbsp;Crypt::Random::rand provider.<br><br>In particular, Windows versions of perl will encounter this issue by default.<br><br><br><br><br>",
                  },
               ],
               value: "Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions.\n\nIf the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available Crypt::Random will default to use the insecure Crypt::Random::rand provider.\n\nIn particular, Windows versions of perl will encounter this issue by default.",
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     cweId: "CWE-338",
                     description: "CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)",
                     lang: "en",
                     type: "CWE",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2025-03-26T01:33:42.709Z",
            orgId: "9b29abf9-4ab0-4765-b253-1875cd9b441e",
            shortName: "CPANSec",
         },
         references: [
            {
               url: "https://perldoc.perl.org/functions/rand",
            },
            {
               url: "https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1",
            },
            {
               url: "https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05",
            },
         ],
         solutions: [
            {
               lang: "en",
               supportingMedia: [
                  {
                     base64: false,
                     type: "text/html",
                     value: "Upgrade to version 1.56 or higher",
                  },
               ],
               value: "Upgrade to version 1.56 or higher",
            },
         ],
         source: {
            discovery: "UNKNOWN",
         },
         title: "Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions",
         x_generator: {
            engine: "Vulnogram 0.2.0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      assignerShortName: "CPANSec",
      cveId: "CVE-2025-1828",
      datePublished: "2025-03-10T23:51:33.279Z",
      dateReserved: "2025-03-01T15:39:14.682Z",
      dateUpdated: "2025-03-26T01:33:42.709Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
}