The Memcache::getextendedstats function can be used to trigger an out-of-bounds read. Exploiting this issue requires control over memcached server hostnames and/or ports. This affects all supported versions of HHVM (3.30 and 3.27.4 and below).
[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2018-6340-78d54a2b",
"target": {
"file": "hphp/runtime/ext/memcache/ext_memcache.cpp"
},
"digest": {
"line_hashes": [
"116564641396687826113900405628999369625",
"21774775140771433607482445078296649987",
"303445089841589477335468234910063791589",
"144999778143332345031462876879788916",
"166763316921933684750743218590549376416",
"98205108961281931698783479048599115314",
"232435788303493606933045906010694340051",
"207902721299876498611867447560711196122",
"272037669034391791871429191000019108581",
"7149308680592616907251226590734153967"
],
"threshold": 0.9
},
"source": "https://github.com/facebook/hhvm/commit/4bff3bfbe90d10451e4638c2118d1ad1117bb3e3",
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2018-6340-e8aa8c0f",
"target": {
"function": "HHVM_METHOD",
"file": "hphp/runtime/ext/memcache/ext_memcache.cpp"
},
"digest": {
"length": 832.0,
"function_hash": "135018026017869968280818258264908976148"
},
"source": "https://github.com/facebook/hhvm/commit/4bff3bfbe90d10451e4638c2118d1ad1117bb3e3",
"signature_type": "Function"
}
]