CVE-2016-15005 json
Cryptographically weak random number generation in github.com/dinever/golf
published 2021-04-14 5 y ago modified 2026-06-17 4 mo ago also GHSA-q9qr-jwpw-3qvv , GO-2020-0045 , EUVD-2022-7716
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 36%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/dinever/golf 0.3.0
- github.com/dinever/golf github.com/dinever/golf 0.3.0
- github.com/dinever/golf@3776f33 commit
- github.com/dinever/golf#24 pull request
- github.com/dinever/golf/releases/tag/v0.3.0 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/dinever/golf | <0.3.0 |
0.3.0 |
Affected products
- github.com/dinever/golf github.com/dinever/golf
Classification
References
-
github.com
/dinever/golf/pull/24
web, patch, third-party-advisory
-
github.com
/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe
web, patch, third-party-advisory
-
github.com
/dinever/golf/issues/20
web, issue-tracking, third-party-advisory, report
-
pkg.go.dev
/vuln/GO-2020-0045
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2016-15005
advisory
-
github.com
/dinever/golf
package
-
github.com
/dinever/golf/releases/tag/v0.3.0
web
Sources
- CVE List CVE-2016-15005
- GitHub Advisory GHSA-q9qr-jwpw-3qvv
- NVD CVE-2016-15005
- OSV GO-2020-0045
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.