{"id":"CVE-2016-15005","aliases":["GHSA-q9qr-jwpw-3qvv","GO-2020-0045"],"kind":"cve","tier":"cold","status":"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.","ai_summary":null,"severity":"high","cvss":{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},"scores":[{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"adp"},{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd"},{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"cna"}],"cwe":["CWE-352"],"remote":true,"remote_unauth":true,"epss":{"score":0.00415,"percentile":0.2747,"date":"2026-11-29"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"Go","name":"github.com/dinever/golf","affected":"< 0.3.0","fixed":["0.3.0"],"source":"osv"}],"affected_products":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","versions":"< 0.3.0","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade github.com/dinever/golf to 0.3.0 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005","kind":"vendor"},{"url":"https://github.com/dinever/golf/pull/24","kind":"patch"},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","kind":"patch"},{"url":"https://github.com/dinever/golf/issues/20","kind":"other"},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","kind":"other"},{"url":"https://github.com/dinever/golf","kind":"other"},{"url":"https://github.com/dinever/golf/releases/tag/v0.3.0","kind":"other"}],"workarounds":null,"vendors":["github.com/dinever/golf","golf_project"],"products":["github.com/dinever/golf","golf"],"cpes":["cpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:*"],"published_at":"2021-04-14T20:04:52.000Z","modified_at":"2026-06-17T00:40:58.837Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-q9qr-jwpw-3qvv","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GO-2020-0045","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2016-15005","markdown":"https://flawdb.com/CVE-2016-15005.md","json":"https://flawdb.com/api/v1/entries/CVE-2016-15005"}}