CVE-2018-6340

Source
https://cve.org/CVERecord?id=CVE-2018-6340
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6340.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-6340
Downstream
Published
2018-12-31T22:29:00.327Z
Modified
2026-07-08T19:45:50.172907Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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).

References

Affected packages

Git / github.com/facebook/hhvm

Affected ranges

Type
GIT
Repo
https://github.com/facebook/hhvm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
Last affected
Fixed
Database specific
Show details
{
    "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"
    ]
}

Affected versions

3.*
3.30
HHVM-3.*
HHVM-3.27.0
HHVM-3.27.1
HHVM-3.27.2
HHVM-3.27.3
HHVM-3.27.4
HHVM-3.30.0
HPHP-2.*
HPHP-2.1.0
gcc-4.*
gcc-4.6
Other
pre-hhvm
src-hphp

Database specific

vanir_signatures_modified
"2026-07-08T19:45:50Z"
vanir_signatures
[
    {
        "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"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6340.json"