{"id":"CVE-2026-120438","summary":"QuickJS-NG before 0.16.0 Heap Buffer Overflow via Proxy ownKeys Enumeration","details":"QuickJS-NG before 0.16.0 contains an integer overflow in js_proxy_get_own_property_names() in quickjs.c that causes a heap buffer overflow on 32-bit hosts. Attackers running JavaScript can return a large array-like object from a Proxy ownKeys trap to wrap the allocation size, causing crashes or potential code execution.","aliases":["GHSA-jp52-chwg-2p9p"],"modified":"2026-11-11T13:21:00.747773069Z","published":"2026-11-02T14:29:00.633Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120438.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-190"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120438.json"},{"type":"ADVISORY","url":"https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0"},{"type":"ADVISORY","url":"https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-jp52-chwg-2p9p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120438"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-proxy-ownkeys-enumeration"},{"type":"FIX","url":"https://github.com/quickjs-ng/quickjs/commit/252209d99cf112568160548bdcaa98d95e0d0068"},{"type":"PACKAGE","url":"https://github.com/quickjs-ng/quickjs"},{"type":"ARTICLE","url":"https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L51509"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/quickjs-ng/quickjs","events":[{"introduced":"0"},{"fixed":"10b99693cdc3f37cdf05114bc2d5225de495c4a3"},{"fixed":"252209d99cf112568160548bdcaa98d95e0d0068"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"0.16.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"252209d99cf112568160548bdcaa98d95e0d0068"}]},{"original_tag":"v0.16.0","range":[{"fixed":"10b99693cdc3f37cdf05114bc2d5225de495c4a3"}],"source":"REFERENCES_TAG"}]}}],"versions":["v0.15.1","v0.15.0","v0.14.0","v0.13.0","v0.12.1","v0.12.0","v0.11.0","v0.10.1","v0.10.0","v0.9.0","v0.8.0","v0.7.0","v0.6.1","v0.6.0","v0.5.0","v0.4.1","v0.4.0","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120438.json","vanir_signatures":[{"target":{"file":"quickjs.c"},"deprecated":false,"digest":{"line_hashes":["310314655540889292448647267715212364636","275489282078593461190295661621355400397","214310465646605225323363683188089151952","273770732402950176220990116378452430048","205782312792768950673151160061180743011","100262500283918254405292852328458472676","165738774529352401281444907976264023869","145367148852932622585746195441880513547","185925958792142345046252479990278383039","62816402412875138276996268477864266935","179728518264294646075852429066281868271","142584215552348337348595850846250086185","109700206743236296963317402695213811211","129733122088618270431700675801152687137","7131181002548909288576034811374801622","192645452406215697515558751417794092866","285431989642744214549689617650172107594","308562807449551079275848158687328404917","310708090890531656364247281611739674964","249394062503063327512715636504143156344","270809632814864238238336917061806065776","252260110405952026232124317405099231946","218286570777892933818596957904147538743"],"threshold":0.9},"id":"CVE-2026-120438-287167e5","signature_type":"Line","signature_version":"v1","source":"https://github.com/quickjs-ng/quickjs/commit/252209d99cf112568160548bdcaa98d95e0d0068"},{"digest":{"length":444,"function_hash":"81088429995738227171737017391260945371"},"id":"CVE-2026-120438-570e17ee","signature_type":"Function","signature_version":"v1","source":"https://github.com/quickjs-ng/quickjs/commit/252209d99cf112568160548bdcaa98d95e0d0068","target":{"file":"api-test.c","function":"main"},"deprecated":false},{"target":{"file":"quickjs.c","function":"js_proxy_get_own_property_names"},"deprecated":false,"digest":{"function_hash":"116979088612776155525701790588010795483","length":2560},"id":"CVE-2026-120438-ccc54876","signature_type":"Function","signature_version":"v1","source":"https://github.com/quickjs-ng/quickjs/commit/252209d99cf112568160548bdcaa98d95e0d0068"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/quickjs-ng/quickjs/commit/252209d99cf112568160548bdcaa98d95e0d0068","target":{"file":"api-test.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["80901445091013349397188786373365978504","221786335818734813019632569603510051596","115194978404317442871513515670643763813","116494912691753498115016932510960205403","115024476298973241195799793585341545346","234203607202623791790782449921401167642","245100613805464108725769771642088971943"]},"id":"CVE-2026-120438-d49e5c40"}],"vanir_signatures_modified":"2026-11-11T13:21:00Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}