# CVE-2018-17071: The fallback function of a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game, generates a random value w…

- 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.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-09-18T21:00:00.000Z
- Modified: 2026-06-17T01:45:19.123Z
- Weaknesses: CWE-338
- Assigned by: mitre

## Description

The fallback function of a simple lottery smart contract implementation for Lucky9io, an Ethereum gambling game, generates a random value with the publicly readable variable entry_number. This variable is private, yet it is readable by eth.getStorageAt function. Also, attackers can purchase a ticket at a low price by directly calling the fallback function with small msg.value, because the developer set the currency unit incorrectly. Therefore, it allows attackers to always win and get rewards.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lucky9 lucky9io: 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://github.com/TEAM-C4B/CVE-LIST/tree/master/CVE-2018-17071> (exploit, third-party-advisory)

## Sources

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

---

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