CVE-2018-6340

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-6340
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-6340.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-6340
Downstream
Published
2018-12-31T22:29:00.327Z
Modified
2025-11-14T08:57:24.539971Z
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
Fixed

Affected versions

HPHP-2.*

HPHP-2.1.0

gcc-4.*

gcc-4.6

Other

pre-hhvm
src-hphp

Database specific

vanir_signatures

[
    {
        "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"
    }
]