{"id":"CVE-2018-1000620","aliases":["CLSA-2026-1778201072","EUVD-2018-0467","GHSA-rq8g-5pc5-wrhr"],"status":"published","title":"Insufficient Entropy in cryptiles","description":"Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01681,"percentile":0.77108,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-331"],"published":"2018-07-09T20:00:00Z","modified":"2026-10-20T10:50:15Z","fixes":[{"ecosystem":"npm","package":"cryptiles","fixed_in":["4.1.2","3.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"cryptiles","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.1.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"cryptiles","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.1.3"}]}]},{"source":"osv","ecosystem":"npm","package":"cryptiles","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.1.2"}]}]},{"source":"osv","ecosystem":"npm","package":"cryptiles","ranges":[{"type":"SEMVER","events":[{"introduced":"3.1.0"},{"fixed":"3.1.3"}]}]}],"products":[{"vendor":"cryptiles_project","product":"cryptiles"}],"references":[{"url":"https://github.com/hapijs/cryptiles/issues/34","tags":["x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/hapijs/cryptiles/issues/35","tags":["x_transferred","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000620","tags":["advisory"]},{"url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/476.json","tags":["web"]},{"url":"https://www.npmjs.com/advisories/720","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1464","tags":["web"]},{"url":"https://github.com/hapijs/cryptiles/commit/9332d4263a32b84e76bf538d7470d01ea63fa047","tags":["web"]},{"url":"https://github.com/hapijs/cryptiles/commit/6bdcd0f6ee8ade96e7b30350bad39ee0c2ef0f9b","tags":["web"]},{"url":"https://github.com/hapijs/cryptiles/commit/cb6bd642816e0cb8341d2b3896fd9e7c57e94f56","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rq8g-5pc5-wrhr"},{"url":"https://github.com/hapijs/cryptiles","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-1000620","description":"Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.","status":"published","published":"2018-07-09T20:00:00Z","modified":"2024-09-16T18:45:19.03Z","updated_at":"2026-11-02T14:35:10.685174Z"}],"euvd":[{"id":"EUVD-2018-0467","description":"Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.","status":"published","published":"2018-07-09T20:00:00Z","modified":"2024-09-16T18:45:19Z","updated_at":"2026-11-03T00:55:29.13849Z"}],"ghsa":[{"id":"GHSA-rq8g-5pc5-wrhr","title":"Insufficient Entropy in cryptiles","description":"Versions of `cryptiles` prior to 4.1.2 are vulnerable to Insufficient Entropy. The `randomDigits()` method does not provide sufficient entropy and its generates digits that are not evenly distributed.\n\n\n## Recommendation\n\nUpgrade to version 4.1.2. The package is deprecated and has been moved to `@hapi/cryptiles` and it is strongly recommended to use the maintained package.","status":"published","published":"2018-09-11T18:22:50Z","modified":"2026-06-08T15:52:37Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-331"],"updated_at":"2026-11-02T14:40:18.682012Z"}],"nvd":[{"id":"CVE-2018-1000620","description":"Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.","status":"published","published":"2018-07-09T20:29:00.737Z","modified":"2026-06-17T01:32:57.33Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","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-331"],"updated_at":"2026-11-02T14:04:32.929986Z"}],"osv":[{"id":"CVE-2018-1000620","description":"Eran Hammer cryptiles version 4.1.1 earlier contains a CWE-331: Insufficient Entropy vulnerability in randomDigits() method that can result in An attacker is more likely to be able to brute force something that was supposed to be random.. This attack appear to be exploitable via Depends upon the calling application.. This vulnerability appears to have been fixed in 4.1.2.","status":"published","published":"2018-07-09T20:29:00.737Z","modified":"2026-10-20T10:50:15.360829127Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:07.192756Z"},{"id":"GHSA-rq8g-5pc5-wrhr","title":"Insufficient Entropy in cryptiles","description":"Versions of `cryptiles` prior to 4.1.2 are vulnerable to Insufficient Entropy. The `randomDigits()` method does not provide sufficient entropy and its generates digits that are not evenly distributed.\n\n\n## Recommendation\n\nUpgrade to version 4.1.2. The package is deprecated and has been moved to `@hapi/cryptiles` and it is strongly recommended to use the maintained package.","status":"published","published":"2018-09-11T18:22:50Z","modified":"2026-06-08T16:00:10.048324137Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-331"],"updated_at":"2026-11-02T15:46:56.281047Z"},{"id":"CLSA-2026-1778201072","title":"TuxCare security update for cryptiles (1 CVE)","description":"TuxCare rebuilt cryptiles to address 1 CVE. Fixed in 3.2.1-tuxcare.1.","status":"withdrawn","published":"2026-08-04T14:52:30Z","modified":"2026-10-16T19:00:02.139355716Z","updated_at":"2026-11-02T15:43:44.737408Z"}]}}
