{ "id": "CVE-2021-21413", "sourceIdentifier": "security-advisories@github.com", "published": "2021-03-30T23:15:14.190", "lastModified": "2021-04-07T14:56:50.367", "vulnStatus": "Analyzed", "descriptions": [ { "lang": "en", "value": "isolated-vm is a library for nodejs which gives you access to v8's Isolate interface. Versions of isolated-vm before v4.0.0 have API pitfalls which may make it easy for implementers to expose supposed secure isolates to the permissions of the main nodejs isolate. Reference objects allow access to the underlying reference's full prototype chain. In an environment where the implementer has exposed a Reference instance to an attacker they would be able to use it to acquire a Reference to the nodejs context's Function object. Similar application-specific attacks could be possible by modifying the local prototype of other API objects. Access to NativeModule objects could allow an attacker to load and run native code from anywhere on the filesystem. If combined with, for example, a file upload API this would allow for arbitrary code execution. This is addressed in v4.0.0 through a series of related changes." }, { "lang": "es", "value": "isolated-vm es una biblioteca para nodejs que le da acceso a la interfaz Isolate de v8. Las versiones de isolated-vm anteriores a v4.0.0 presentan unas limitaciones de la API que puede facilitar a implementadores una exposici\u00f3n de supuestos aislamientos seguros para los permisos del aislamiento de nodejs principal. Los objetos de referencia permiten el acceso a la cadena de prototipos completa de la referencia subyacente. En un entorno donde el implementador ha expuesto una instancia de Referencia a un atacante, podr\u00eda ser capaz de usarla para adquirir una Referencia al objeto de Funci\u00f3n del contexto de nodejs. Se podr\u00edan realizar ataques espec\u00edficos de aplicaciones similares al modificar el prototipo local de otros objetos API. Un acceso a los objetos NativeModule podr\u00eda permitir a un atacante cargar y ejecutar c\u00f3digo nativo desde cualquier lugar del sistema de archivos. Si es combinado con, por ejemplo, una API de carga de archivos, esto permitir\u00eda una ejecuci\u00f3n de c\u00f3digo arbitrario. Esto es abordado en versi\u00f3n v4.0.0 mediante una serie de cambios relacionados." } ], "metrics": { "cvssMetricV31": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 9.6, "baseSeverity": "CRITICAL" }, "exploitabilityScore": 2.8, "impactScore": 6.0 }, { "source": "security-advisories@github.com", "type": "Secondary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE", "baseScore": 8.0, "baseSeverity": "HIGH" }, "exploitabilityScore": 1.6, "impactScore": 5.8 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "2.0", "vectorString": "AV:A/AC:L/Au:N/C:P/I:P/A:P", "accessVector": "ADJACENT_NETWORK", "accessComplexity": "LOW", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 5.8 }, "baseSeverity": "MEDIUM", "exploitabilityScore": 6.5, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false } ] }, "weaknesses": [ { "source": "security-advisories@github.com", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-913" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:isolated-vm_project:isolated-vm:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "4.0.0", "matchCriteriaId": "6050FC4E-0C96-4300-8F43-78C1C6E27A0E" } ] } ] } ], "references": [ { "url": "https://github.com/laverdet/isolated-vm/blob/main/CHANGELOG.md#v400", "source": "security-advisories@github.com", "tags": [ "Release Notes", "Third Party Advisory" ] }, { "url": "https://github.com/laverdet/isolated-vm/commit/2646e6c1558bac66285daeab54c7d490ed332b15", "source": "security-advisories@github.com", "tags": [ "Patch", "Third Party Advisory" ] }, { "url": "https://github.com/laverdet/isolated-vm/commit/27151bfecc260e96714443613880e3b2e6596704", "source": "security-advisories@github.com", "tags": [ "Patch", "Third Party Advisory" ] }, { "url": "https://github.com/laverdet/isolated-vm/security/advisories/GHSA-mmhj-4w6j-76h7", "source": "security-advisories@github.com", "tags": [ "Third Party Advisory" ] } ] }