# CVE-2018-12056: The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicl…

- Severity: High 7.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.68%, higher than 77% of CVEs (2026-12-01)
- Published: 2018-08-15T17:00:00.000Z
- Modified: 2026-06-17T01:37:04.927Z
- Weaknesses: CWE-338
- Assigned by: mitre

## Description

The maxRandom function of a smart contract implementation for All For One, an Ethereum gambling game, generates a random value with publicly readable variables because the _seed value can be retrieved with a getStorageAt call. Therefore, it allows attackers to always win and get rewards.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- all-for-one all_for_one: no versions given

## Every score

- NVD: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://medium.com/%40jonghyk.song/to-be-a-winner-of-ethereum-gambling-game-all-for-one-by-breaking-prng-1ab011163d40>
- <https://lists.apache.org/thread.html/a62aa2706105d68f1c02023fe24aaa3c13b4d8a1826181fed07d9682%40%3Cnotifications.zookeeper.apache.org%3E> (mailing-list)

## Sources

- CVE List: [CVE-2018-12056](https://www.cve.org/CVERecord?id=CVE-2018-12056), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-12056](https://nvd.nist.gov/vuln/detail/CVE-2018-12056), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-12056 · Whole record: https://cve.day/CVE-2018-12056.json · Rebuilt by cve.day 2026-11-25T22:57:39.277Z
