{"id":"CVE-2016-15005","aliases":["EUVD-2022-7716","GHSA-q9qr-jwpw-3qvv","GO-2020-0045"],"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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00415,"percentile":0.36071,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-332","CWE-352"],"published":"2021-04-14T20:04:52Z","modified":"2026-10-20T10:47:35Z","fixes":[{"ecosystem":"Go","package":"github.com/dinever/golf","fixed_in":["0.3.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/dinever/golf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/dinever/golf","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/dinever/golf","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}]}],"products":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf"},{"vendor":"golf_project","product":"golf"}],"references":[{"url":"https://github.com/dinever/golf/pull/24","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/dinever/golf/issues/20","tags":["x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005","tags":["advisory"]},{"url":"https://github.com/dinever/golf/releases/tag/v0.3.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q9qr-jwpw-3qvv"},{"url":"https://github.com/dinever/golf","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2016-15005","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.","status":"published","published":"2022-12-27T21:13:27.393Z","modified":"2025-04-11T16:39:25.1Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"updated_at":"2026-11-02T14:33:32.415289Z"}],"euvd":[{"id":"EUVD-2022-7716","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.","status":"published","published":"2022-12-27T21:13:27Z","modified":"2025-04-11T16:39:25Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:34.493984Z"}],"ghsa":[{"id":"GHSA-q9qr-jwpw-3qvv","title":"Golf may allow attacker to bypass CSRF protections due to weak PRNG","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.","status":"published","published":"2022-12-28T00:30:23Z","modified":"2023-08-29T19:36:31Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-332","CWE-352"],"updated_at":"2026-11-02T14:37:01.345964Z"}],"nvd":[{"id":"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.","status":"published","published":"2022-12-27T22:15:11.003Z","modified":"2026-06-17T00:40:58.837Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:03:40.811555Z"}],"osv":[{"id":"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.","status":"published","published":"2022-12-27T22:15:11.003Z","modified":"2026-10-20T10:47:35.480719966Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.114472Z"},{"id":"GHSA-q9qr-jwpw-3qvv","title":"Golf may allow attacker to bypass CSRF protections due to weak PRNG","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.","status":"published","published":"2022-12-28T00:30:23Z","modified":"2024-05-20T19:42:50Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-332","CWE-352"],"updated_at":"2026-11-02T15:46:54.40888Z"},{"id":"GO-2020-0045","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.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
