Cryptographically weak random number generation in github.com/dinever/golf
Priority MEDIUM 40CWE-352Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-352.
Summary
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00415 36th percentileScored 2026-11-07
Fix Fixed github.com/dinever/golf (github.com/dinever/golf): 0.3.0github.com/dinever/golf (Go): 0.3.0
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| github.com/dinever/golf | github.com/dinever/golf | before 0.3.0 | 0.3.0 | Patch available | CNA |
| — | github.com/dinever/golf (Go) | before 0.3.0 | 0.3.0 | Patch available | GHSA-q9qr-jwpw-3qvv |
- github.com/dinever/golf Vendorgithub.com/dinever/golf Affected before 0.3.0 Fixed in 0.3.0 Patch available CNA
- github.com/dinever/golf (Go) Vendor— Affected before 0.3.0 Fixed in 0.3.0 Patch available GHSA-q9qr-jwpw-3qvv
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:* | before 0.3.0 | Vulnerable | Golf Project |
- cpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:* Versions before 0.3.0 Vulnerable ·Golf Project
Remediation
- Fix · CNA github.com/dinever/golf (github.com/dinever/golf) Fixed in 0.3.0
- Fix · GHSA-q9qr-jwpw-3qvv github.com/dinever/golf (Go) Fixed in 0.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2016-15005
- 2026-10-03 Alias added: GHSA-q9qr-jwpw-3qvv
References
Patch 2
Advisory 3
Sources
- CVE-2016-15005 · CVE Program
- CVE-2016-15005 · NVD
- FIRST EPSS
- GHSA-q9qr-jwpw-3qvv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences