{"id":"CVE-2026-120439","state":"PUBLISHED","title":"QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort","description":"QuickJS-NG before 0.16.0 contains an integer overflow in js_typed_array_sort() in quickjs.c that allows attackers to cause a heap buffer overflow on 32-bit hosts. Attackers who can run JavaScript can call TypedArray.prototype.sort with a comparator on a typed array near 2^30 elements, wrapping the allocation size and writing indices past the buffer to crash or potentially execute code.","publishedAt":"2026-11-02T14:29:01.345Z","updatedAt":"2026-11-06T19:30:29.306Z","severity":{"score":8.3,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["quickjs-ng QuickJS-NG"],"affected":[{"vendor":"quickjs-ng","product":"QuickJS-NG","packageURL":"pkg:github/quickjs-ng/quickjs","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.16.0","versionType":"semver"}],"repo":"https://github.com/quickjs-ng/quickjs"}],"references":["https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6","https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568","https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0","https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032","https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort"],"weaknesses":["CWE-190"],"ingestedAt":"2026-11-06T19:40:06.432Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120439.json","commit":"074384ed49533fadca8dbc712879a47cf20cb41a","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120439","state":"PUBLISHED","datePublished":"2026-11-02T14:29:01.345Z","dateUpdated":"2026-11-06T19:30:29.306Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-02T12:42:15.449Z"},"containers":{"cna":{"title":"QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort","descriptions":[{"lang":"en","value":"QuickJS-NG before 0.16.0 contains an integer overflow in js_typed_array_sort() in quickjs.c that allows attackers to cause a heap buffer overflow on 32-bit hosts. Attackers who can run JavaScript can call TypedArray.prototype.sort with a comparator on a typed array near 2^30 elements, wrapping the allocation size and writing indices past the buffer to crash or potentially execute code."}],"affected":[{"vendor":"quickjs-ng","product":"QuickJS-NG","packageURL":"pkg:github/quickjs-ng/quickjs","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.16.0","versionType":"semver"}],"repo":"https://github.com/quickjs-ng/quickjs"}],"references":[{"url":"https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-9wv5-5cgr-grj6)"},{"url":"https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568","tags":["patch"]},{"url":"https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0","tags":["release-notes"],"name":"QuickJS-NG v0.16.0 Release Notes"},{"url":"https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort","name":"VulnCheck Advisory: QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.3,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"Integer Overflow or Wraparound","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-02T14:29:01.345Z"},"datePublic":"2026-07-31T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*","versionEndExcluding":"0.16.0"}]}]}],"credits":[{"lang":"en","value":"Tristan Madani (Talence Security)","type":"finder"},{"lang":"en","value":"Saúl Ibarra Corretgé","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T19:30:12.358583Z","id":"CVE-2026-120439","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T19:30:29.306Z"}}]}}}