{"id":"CVE-2016-15005","state":"PUBLISHED","title":"Cryptographically weak random number generation in github.com/dinever/golf","description":"CSRF tokens are generated using math/rand, which is not a cryptographically secure random number generator, allowing an attacker to predict values and bypass CSRF protections with relatively few requests.","publishedAt":"2022-12-27T21:13:27.393Z","updatedAt":"2025-04-11T16:39:25.100Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"Go","products":["github.com/dinever/golf github.com/dinever/golf"],"affected":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","packageName":"github.com/dinever/golf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.3.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"randomBytes"},{"name":"Context.Render"},{"name":"Context.RenderFromString"}]}],"references":["https://github.com/dinever/golf/pull/24","https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","https://github.com/dinever/golf/issues/20","https://pkg.go.dev/vuln/GO-2020-0045"],"weaknesses":[],"ingestedAt":"2026-10-29T19:42:31.720Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2016/15xxx/CVE-2016-15005.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2016-15005","state":"PUBLISHED","datePublished":"2022-12-27T21:13:27.393Z","dateUpdated":"2025-04-11T16:39:25.100Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2022-07-29T18:33:03.456Z"},"containers":{"cna":{"title":"Cryptographically weak random number generation in github.com/dinever/golf","descriptions":[{"lang":"en","value":"CSRF tokens are generated using math/rand, which is not a cryptographically secure random number generator, allowing an attacker to predict values and bypass CSRF protections with relatively few requests."}],"affected":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","packageName":"github.com/dinever/golf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.3.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"randomBytes"},{"name":"Context.Render"},{"name":"Context.RenderFromString"}]}],"references":[{"url":"https://github.com/dinever/golf/pull/24"},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe"},{"url":"https://github.com/dinever/golf/issues/20"},{"url":"https://pkg.go.dev/vuln/GO-2020-0045"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE 338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:04:00.986Z"},"credits":[{"lang":"en","value":"@elithrar"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/dinever/golf/pull/24","tags":["x_transferred"]},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","tags":["x_transferred"]},{"url":"https://github.com/dinever/golf/issues/20","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T03:47:34.824Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.8,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-04-11T16:38:53.683800Z","id":"CVE-2016-15005","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-11T16:39:25.100Z"}}]}}}