CVE-2016-15005
HIGH 8.8CVSS 3.1Golf may allow attacker to bypass CSRF protections due to weak PRNG
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
- 27 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-332CWE-352
- Also known as
- GHSA-q9qr-jwpw-3qvvGO-2020-0045
- Sources
- NVDJSONOSV GHSA-q9qr-jwpw-3qvvJSONOSV GO-2020-0045JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golf_project | golfcpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:* |
< 0.3.0 | 0.3.0 |
| OSV | Go | github.com/dinever/golf | < 0.3.0 | 0.3.0 |
References
- https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe · Patch, Third Party Advisory, WEB, FIX
- https://github.com/dinever/golf/issues/20 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/dinever/golf/pull/24 · Patch, Third Party Advisory, WEB, FIX
- https://pkg.go.dev/vuln/GO-2020-0045 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-15005 · ADVISORY
- https://github.com/dinever/golf · PACKAGE
- https://github.com/dinever/golf/releases/tag/v0.3.0 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Dec 2022)