{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-29199",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions which can be used to escape the sandbox and run arbitrary code in host context. A threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version `3.9.16` of `vm2`.\n"
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-913: Improper Control of Dynamically-Managed Code Resources",
                        "cweId": "CWE-913"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "patriksimek",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "vm2",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 3.9.16"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985",
                "refsource": "MISC",
                "name": "https://github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985"
            },
            {
                "url": "https://github.com/patriksimek/vm2/issues/516",
                "refsource": "MISC",
                "name": "https://github.com/patriksimek/vm2/issues/516"
            },
            {
                "url": "https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7",
                "refsource": "MISC",
                "name": "https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7"
            },
            {
                "url": "https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c",
                "refsource": "MISC",
                "name": "https://gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c"
            },
            {
                "url": "https://github.com/patriksimek/vm2/releases/tag/3.9.16",
                "refsource": "MISC",
                "name": "https://github.com/patriksimek/vm2/releases/tag/3.9.16"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-xj72-wvfv-8985",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.8,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
            }
        ]
    }
}