{
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "folly",
                    "vendor": "Facebook",
                    "versions": [
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "v2021.07.22.00",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "v2021.07.22.00",
                            "status": "affected",
                            "version": "unspecified",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "product": "HHVM",
                    "vendor": "Facebook",
                    "versions": [
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.118.2",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "affected",
                            "version": "4.118.0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.117.1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "4.117.0"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.116.1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "4.116.0"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.115.1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "4.115.0"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.114.1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "4.114.0"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.113.1",
                            "versionType": "custom"
                        },
                        {
                            "status": "affected",
                            "version": "4.113.0"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.102.2",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "affected",
                            "version": "4.102.0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "affected",
                            "version": "4.81.0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "unspecified",
                            "status": "unaffected",
                            "version": "4.80.5",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.80.5",
                            "status": "affected",
                            "version": "unspecified",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "dateAssigned": "2021-05-04T00:00:00",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with the possibility of remote code execution. This issue affects versions of folly prior to v2021.07.22.00. This issue affects HHVM versions prior to 4.80.5, all versions between 4.81.0 and 4.102.1, all versions between 4.103.0 and 4.113.0, and versions 4.114.0, 4.115.0, 4.116.0, 4.117.0, 4.118.0 and 4.118.1."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-122",
                            "description": "Heap-based Buffer Overflow (CWE-122)",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "dateUpdated": "2021-07-23T00:30:16",
                "orgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
                "shortName": "facebook"
            },
            "references": [
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://hhvm.com/blog/2021/07/20/security-update.html"
                },
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3"
                },
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://www.facebook.com/security/advisories/cve-2021-24036"
                }
            ],
            "x_legacyV4Record": {
                "CVE_data_meta": {
                    "ASSIGNER": "cve-assign@fb.com",
                    "DATE_ASSIGNED": "2021-05-04",
                    "ID": "CVE-2021-24036",
                    "STATE": "PUBLIC"
                },
                "affects": {
                    "vendor": {
                        "vendor_data": [
                            {
                                "product": {
                                    "product_data": [
                                        {
                                            "product_name": "folly",
                                            "version": {
                                                "version_data": [
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "v2021.07.22.00"
                                                    },
                                                    {
                                                        "version_affected": "<",
                                                        "version_value": "v2021.07.22.00"
                                                    }
                                                ]
                                            }
                                        },
                                        {
                                            "product_name": "HHVM",
                                            "version": {
                                                "version_data": [
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.118.2"
                                                    },
                                                    {
                                                        "version_affected": ">=",
                                                        "version_value": "4.118.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.117.1"
                                                    },
                                                    {
                                                        "version_affected": "=",
                                                        "version_value": "4.117.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.116.1"
                                                    },
                                                    {
                                                        "version_affected": "=",
                                                        "version_value": "4.116.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.115.1"
                                                    },
                                                    {
                                                        "version_affected": "=",
                                                        "version_value": "4.115.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.114.1"
                                                    },
                                                    {
                                                        "version_affected": "=",
                                                        "version_value": "4.114.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.113.1"
                                                    },
                                                    {
                                                        "version_affected": "=",
                                                        "version_value": "4.113.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.102.2"
                                                    },
                                                    {
                                                        "version_affected": ">=",
                                                        "version_value": "4.102.0"
                                                    },
                                                    {
                                                        "version_affected": ">=",
                                                        "version_value": "4.81.0"
                                                    },
                                                    {
                                                        "version_affected": "!>=",
                                                        "version_value": "4.80.5"
                                                    },
                                                    {
                                                        "version_affected": "<",
                                                        "version_value": "4.80.5"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "vendor_name": "Facebook"
                            }
                        ]
                    }
                },
                "data_format": "MITRE",
                "data_type": "CVE",
                "data_version": "4.0",
                "description": {
                    "description_data": [
                        {
                            "lang": "eng",
                            "value": "Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with the possibility of remote code execution. This issue affects versions of folly prior to v2021.07.22.00. This issue affects HHVM versions prior to 4.80.5, all versions between 4.81.0 and 4.102.1, all versions between 4.103.0 and 4.113.0, and versions 4.114.0, 4.115.0, 4.116.0, 4.117.0, 4.118.0 and 4.118.1."
                        }
                    ]
                },
                "problemtype": {
                    "problemtype_data": [
                        {
                            "description": [
                                {
                                    "lang": "eng",
                                    "value": "Heap-based Buffer Overflow (CWE-122)"
                                }
                            ]
                        }
                    ]
                },
                "references": {
                    "reference_data": [
                        {
                            "name": "https://hhvm.com/blog/2021/07/20/security-update.html",
                            "refsource": "CONFIRM",
                            "url": "https://hhvm.com/blog/2021/07/20/security-update.html"
                        },
                        {
                            "name": "https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3",
                            "refsource": "MISC",
                            "url": "https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3"
                        },
                        {
                            "name": "https://www.facebook.com/security/advisories/cve-2021-24036",
                            "refsource": "CONFIRM",
                            "url": "https://www.facebook.com/security/advisories/cve-2021-24036"
                        }
                    ]
                }
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T19:21:17.359Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://hhvm.com/blog/2021/07/20/security-update.html"
                    },
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3"
                    },
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://www.facebook.com/security/advisories/cve-2021-24036"
                    }
                ]
            }
        ]
    },
    "cveMetadata": {
        "assignerOrgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
        "assignerShortName": "facebook",
        "cveId": "CVE-2021-24036",
        "datePublished": "2021-07-23T00:30:16",
        "dateReserved": "2021-01-13T00:00:00",
        "dateUpdated": "2024-08-03T19:21:17.359Z",
        "state": "PUBLISHED"
    },
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1"
}