KeygraphLabs · CVE MCP

CVE-2016-15005 · Go

Cryptographically weak random number generation in github.com/dinever/golf

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-27, last changed 2026-06-17. Weakness: CWE-352.

CVSS
8.8
high, from NVD
EPSS
0.42%
percentile 38.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: github.com/dinever/golf 0.3.0 (Go). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in dinever/golf by 3776f338be, pull request #24, 11abebbbb2. Functions changed by the fix: randomBytes, Redirect, Redirect301, Query, Send, Render, sessionID, Session. Regression tests: context_test.go. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2021-04-14Package advisory GO-2020-0045
2022-12-27Published
2022-12-28Package advisory GHSA-q9qr-jwpw-3qvv
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.41%
2026-12-05Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-q9qr-jwpw-3qvvgithub.com/dinever/golf (Go)0.3.0
GO-2020-0045github.com/dinever/golf (Go)0.3.0

Also known as: GHSA-q9qr-jwpw-3qvv, GO-2020-0045

Credited: @elithrar (other)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-15005, or call /api/v1/vulnerabilities/CVE-2016-15005. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org