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).
{
"cpe": [
"cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*",
"cpe:2.3:a:facebook:hhvm:3.30:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "3.27.4"
},
{
"introduced": "3.30"
},
{
"last_affected": "3.30"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}
"2026-07-08T19:45:50Z"
[
{
"source": "https://github.com/facebook/hhvm/commit/4bff3bfbe90d10451e4638c2118d1ad1117bb3e3",
"signature_version": "v1",
"digest": {
"line_hashes": [
"116564641396687826113900405628999369625",
"21774775140771433607482445078296649987",
"303445089841589477335468234910063791589",
"144999778143332345031462876879788916",
"166763316921933684750743218590549376416",
"98205108961281931698783479048599115314",
"232435788303493606933045906010694340051",
"207902721299876498611867447560711196122",
"272037669034391791871429191000019108581",
"7149308680592616907251226590734153967"
],
"threshold": 0.9
},
"id": "CVE-2018-6340-78d54a2b",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "hphp/runtime/ext/memcache/ext_memcache.cpp"
}
},
{
"source": "https://github.com/facebook/hhvm/commit/4bff3bfbe90d10451e4638c2118d1ad1117bb3e3",
"signature_version": "v1",
"digest": {
"length": 832.0,
"function_hash": "135018026017869968280818258264908976148"
},
"id": "CVE-2018-6340-e8aa8c0f",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "hphp/runtime/ext/memcache/ext_memcache.cpp",
"function": "HHVM_METHOD"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6340.json"