{
    "CVE_data_meta": {
        "ASSIGNER": "cve-assign@fb.com",
        "DATE_ASSIGNED": "2019-06-10",
        "ID": "CVE-2019-3570",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "HHVM",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.8.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "4.8.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.7.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "4.7.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.6.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "4.6.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.5.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "4.5.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.4.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "4.4.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "4.3.1"
                                        },
                                        {
                                            "version_affected": ">=",
                                            "version_value": "4.0.0"
                                        },
                                        {
                                            "version_affected": "!=>",
                                            "version_value": "3.30.6"
                                        },
                                        {
                                            "version_affected": "<=",
                                            "version_value": "3.30.5"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Facebook"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Call to the scrypt_enc() function in HHVM can lead to heap corruption by using specifically crafted parameters (N, r and p). This happens if the parameters are configurable by an attacker for instance by providing the output of scrypt_enc() in a context where Hack/PHP code would attempt to verify it by re-running scrypt_enc() with the same parameters. This could result in information disclosure, memory being overwriten or crashes of the HHVM process. This issue affects versions 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, versions 3.30.5 and below, and all versions in the 4.0, 4.1, and 4.2 series."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Heap-based Buffer Overflow (CWE-122)"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "CONFIRM",
                "name": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815",
                "url": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html",
                "url": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html"
            }
        ]
    }
}