Vulnerabilites related to Go standard library - crypto/rand
cve-2022-30634
Vulnerability from cvelistv5
Published
2022-07-15 19:36
Modified
2024-08-03 06:56
Severity ?
Summary
Infinite loop in Read in crypto/rand before Go 1.17.11 and Go 1.18.3 on Windows allows attacker to cause an indefinite hang by passing a buffer larger than 1 << 32 - 1 bytes.
Impacted products
Vendor Product Version
Go standard library crypto/rand Version: 0   
Version: 1.18.0-0   
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            providerMetadata: {
               dateUpdated: "2024-08-03T06:56:13.255Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://go.dev/cl/402257",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://go.dev/issue/52561",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://pkg.go.dev/vuln/GO-2022-0477",
               },
            ],
            title: "CVE Program Container",
         },
      ],
      cna: {
         affected: [
            {
               collectionURL: "https://pkg.go.dev",
               defaultStatus: "unaffected",
               packageName: "crypto/rand",
               platforms: [
                  "windows",
               ],
               product: "crypto/rand",
               programRoutines: [
                  {
                     name: "Read",
                  },
               ],
               vendor: "Go standard library",
               versions: [
                  {
                     lessThan: "1.17.11",
                     status: "affected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThan: "1.18.3",
                     status: "affected",
                     version: "1.18.0-0",
                     versionType: "semver",
                  },
               ],
            },
         ],
         credits: [
            {
               lang: "en",
               value: "Davis Goodin",
            },
            {
               lang: "en",
               value: "Quim Muntal of Microsoft",
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "Infinite loop in Read in crypto/rand before Go 1.17.11 and Go 1.18.3 on Windows allows attacker to cause an indefinite hang by passing a buffer larger than 1 << 32 - 1 bytes.",
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     description: "CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')",
                     lang: "en",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2023-06-12T19:04:27.361Z",
            orgId: "1bb62c36-49e3-4200-9d77-64a1400537cc",
            shortName: "Go",
         },
         references: [
            {
               url: "https://go.dev/cl/402257",
            },
            {
               url: "https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863",
            },
            {
               url: "https://go.dev/issue/52561",
            },
            {
               url: "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ",
            },
            {
               url: "https://pkg.go.dev/vuln/GO-2022-0477",
            },
         ],
         title: "Indefinite hang with large buffers on Windows in crypto/rand",
      },
   },
   cveMetadata: {
      assignerOrgId: "1bb62c36-49e3-4200-9d77-64a1400537cc",
      assignerShortName: "Go",
      cveId: "CVE-2022-30634",
      datePublished: "2022-07-15T19:36:19",
      dateReserved: "2022-05-12T00:00:00",
      dateUpdated: "2024-08-03T06:56:13.255Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
}