{"schemaVersion":3,"id":"CVE-2018-6337","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"folly::secureRandom will re-use a buffer between parent and child processes when fork() is called. That will result in multiple forked children producing repeat (or similar) results. This affects HHVM 3.26 prior to 3.26.3 and the folly library between v2017.12.11.00 and v2018.08.09.00.","dates":{"published":"2018-12-31T22:00:00.000Z","modified":"2025-05-06T16:39:21.216Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01778,"percentile":0.77925,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01778},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01761,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01778,"percentile":0.77925}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01761,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01778,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01778,"percentile":0.77925}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer","description":"The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/212.html"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"facebook","product":"folly","name":"folly","label":"folly","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"v2018.08.09.00","noFixRecorded":false,"fixedIn":null},{"text":"≥ v2017.12.11.00, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2017.12.11.00, ≤ 2018.08.09.00","noFixRecorded":false,"fixedIn":null}],"versionsText":"v2018.08.09.00 | ≥ v2017.12.11.00, < unspecified | ≥ 2017.12.11.00, ≤ 2018.08.09.00","eol":null,"hubHref":"/vendor/facebook/folly"},{"vendor":"facebook","product":"hhvm","name":"hhvm","label":"hhvm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.26.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.26.0, < unspecified","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.26, < 3.26.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.26.3 | ≥ 3.26.0, < unspecified | ≥ 3.26, < 3.26.3","eol":null,"hubHref":"/vendor/facebook/hhvm"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://hhvm.com/blog/2018/05/24/hhvm-3.26.3.html","label":"hhvm.com/blog/2018/05/24/hhvm-3.26.3.html","hostname":"hhvm.com","tags":["X Refsource MISC","Release Notes","Vendor Advisory"]},{"url":"https://github.com/facebook/folly/commit/8e927ee48b114c8a2f90d0cbd5ac753795a6761f","label":"github.com/facebook/folly/commit/8e927ee48b114c8a2f90d0cbd5ac753795a6761f","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://github.com/facebook/hhvm/commit/e2d10a1e32d01f71aaadd81169bcb9ae86c5d6b8","label":"github.com/facebook/hhvm/commit/e2d10a1e32d01f71aaadd81169bcb9ae86c5d6b8","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-12-31T22:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-06T16:39:21.216Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:33:22.970Z","stale":false,"partial":false}}