{
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "HHVM",
                    "vendor": "Facebook",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "4.8.1"
                        },
                        {
                            "status": "affected",
                            "version": "4.8.0"
                        },
                        {
                            "status": "affected",
                            "version": "4.7.1"
                        },
                        {
                            "status": "affected",
                            "version": "4.7.0"
                        },
                        {
                            "status": "affected",
                            "version": "4.6.1"
                        },
                        {
                            "status": "affected",
                            "version": "4.6.0"
                        },
                        {
                            "status": "affected",
                            "version": "4.5.1"
                        },
                        {
                            "status": "affected",
                            "version": "4.5.0"
                        },
                        {
                            "status": "affected",
                            "version": "4.4.1"
                        },
                        {
                            "status": "affected",
                            "version": "4.4.0"
                        },
                        {
                            "status": "affected",
                            "version": "4.3.1"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "affected",
                            "version": "4.0.0",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "3.30.6"
                        },
                        {
                            "lessThanOrEqual": "3.30.5",
                            "status": "affected",
                            "version": "unspecified",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "dateAssigned": "2019-06-10T00:00:00",
            "datePublic": "2019-06-11T00:00:00",
            "descriptions": [
                {
                    "lang": "en",
                    "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-122",
                            "description": "Heap-based Buffer Overflow (CWE-122)",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "dateUpdated": "2019-07-18T15:42:25",
                "orgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
                "shortName": "facebook"
            },
            "references": [
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815"
                },
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html"
                }
            ],
            "x_legacyV4Record": {
                "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": [
                        {
                            "name": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815",
                            "refsource": "CONFIRM",
                            "url": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815"
                        },
                        {
                            "name": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html",
                            "refsource": "CONFIRM",
                            "url": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html"
                        }
                    ]
                }
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T19:12:09.495Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815"
                    },
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html"
                    }
                ]
            }
        ]
    },
    "cveMetadata": {
        "assignerOrgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
        "assignerShortName": "facebook",
        "cveId": "CVE-2019-3570",
        "datePublished": "2019-07-18T15:42:25",
        "dateReserved": "2019-01-02T00:00:00",
        "dateUpdated": "2024-08-04T19:12:09.495Z",
        "state": "PUBLISHED"
    },
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1"
}