{"id":"CVE-2018-12975","aliases":["EUVD-2018-4926","GHSA-8cgr-4wgx-xqx4"],"status":"published","title":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game,...","description":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01253,"percentile":0.69659,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-338"],"published":"2018-09-24T22:00:00Z","modified":"2026-06-17T01:38:38Z","products":[{"vendor":"cryptosaga","product":"cryptosaga"}],"references":[{"url":"https://medium.com/%40jonghyk.song/create-legendary-champs-by-breaking-prng-of-cryptosaga-an-ethereum-rpg-game-cve-2018-12975-8de733ff8255","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12975"},{"url":"https://medium.com/@jonghyk.song/create-legendary-champs-by-breaking-prng-of-cryptosaga-an-ethereum-rpg-game-cve-2018-12975-8de733ff8255"},{"url":"https://github.com/advisories/GHSA-8cgr-4wgx-xqx4"}],"sources":{"cve":[{"id":"CVE-2018-12975","description":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).","status":"published","published":"2018-09-24T22:00:00Z","modified":"2024-08-05T08:52:49.356Z","updated_at":"2026-11-02T14:35:06.320867Z"}],"euvd":[{"id":"EUVD-2018-4926","description":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).","status":"published","published":"2018-09-24T22:00:00Z","modified":"2024-08-05T08:52:49Z","updated_at":"2026-11-03T02:39:51.126842Z"}],"ghsa":[{"id":"GHSA-8cgr-4wgx-xqx4","title":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game,...","description":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).","status":"published","published":"2022-05-14T01:46:48Z","modified":"2023-02-02T05:04:29Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:51:53.265489Z"}],"nvd":[{"id":"CVE-2018-12975","description":"The random() function of the smart contract implementation for CryptoSaga, an Ethereum game, generates a random value with publicly readable variables such as timestamp, the current block's blockhash, and a private variable (which can be read with a getStorageAt call). Therefore, attackers can precompute the random number and manipulate the game (e.g., get powerful characters or get critical damages).","status":"published","published":"2018-09-24T22:29:00.427Z","modified":"2026-06-17T01:38:38.187Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:04:40.661264Z"}]}}
