{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2016-15005","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.","descriptionLong":"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.","published":"2022-12-27T21:13:27.393Z","updated":"2026-10-20T10:47:35.480719966Z","reserved":"2022-07-29T18:33:03.456Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"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","rating":"high","source":"NVD"},"metrics":[{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"CISA-ADP"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["github.com/dinever/golf"],"affectedProducts":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"0.3.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/dinever/golf","purl":"pkg:golang/github.com/dinever/golf","ranges":["<0.3.0"],"fixed":["0.3.0"],"advisory":"GHSA-q9qr-jwpw-3qvv"}],"cwes":["CWE-352","CWE-332"],"aliases":["GHSA-q9qr-jwpw-3qvv","GO-2020-0045"],"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","tags":["package"]},{"url":"https://github.com/dinever/golf/releases/tag/v0.3.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00415,"epssPercentile":0.36455,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2016-15005","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-15005","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2016-15005","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q9qr-jwpw-3qvv","ok":true,"note":"GHSA-q9qr-jwpw-3qvv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2016-15005","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}