{"api_version":"1","generated_at":"2026-07-23T01:51:23+00:00","cve":"CVE-2016-15005","urls":{"html":"https://cve.report/CVE-2016-15005","api":"https://cve.report/api/cve/CVE-2016-15005.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-15005","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005"},"summary":{"title":"CVE-2016-15005","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.","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-12-27 22:15:00","updated_at":"2023-02-28 18:15:00"},"problem_types":["CWE-352"],"metrics":[],"references":[{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","name":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","refsource":"MISC","tags":[],"title":"Merge pull request #24 from bentranter/use-crypto-rand-for-xsrf · dinever/golf@3776f33 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","name":"https://pkg.go.dev/vuln/GO-2020-0045","refsource":"MISC","tags":[],"title":"GO-2020-0045 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/dinever/golf/pull/24","name":"https://github.com/dinever/golf/pull/24","refsource":"MISC","tags":[],"title":"Use crypto/rand for XSRF token generation by bentranter · Pull Request #24 · dinever/golf · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/dinever/golf/issues/20","name":"https://github.com/dinever/golf/issues/20","refsource":"MISC","tags":[],"title":"Use crypto/rand instead of math/rand · Issue #20 · dinever/golf · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-15005","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"15005","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golf_project","cpe5":"golf","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"go","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2016-15005","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE 338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"github.com/dinever/golf","product":{"product_data":[{"product_name":"github.com/dinever/golf","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"0.3.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/dinever/golf/pull/24","refsource":"MISC","name":"https://github.com/dinever/golf/pull/24"},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","refsource":"MISC","name":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe"},{"url":"https://github.com/dinever/golf/issues/20","refsource":"MISC","name":"https://github.com/dinever/golf/issues/20"},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2020-0045"}]},"credits":[{"lang":"en","value":"@elithrar"}]},"nvd":{"publishedDate":"2022-12-27 22:15:00","lastModifiedDate":"2023-02-28 18:15:00","problem_types":["CWE-352"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:*","versionEndExcluding":"0.3.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}