{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-62496","published":"2025-10-16T16:15:40.260000Z","last_modified":"2026-10-19T17:10:00.173000Z","status":"Analyzed","cvss":{"version":"4.0","score":7.1,"severity":"HIGH","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"cve-coordination@google.com","primary":false},"auth":true,"cwes":["CWE-190"],"cpes":[{"criteria":"cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*","part":"a","vendor":"quickjs_project","product":"quickjs","version_end_excluding":"2025-09-13"}],"cpes_truncated":false,"vendors":["quickjs_project"],"products":["quickjs_project/quickjs"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":43,"links":{"html_es":"/es/cve/CVE-2025-62496/","html_en":"/en/cve/CVE-2025-62496/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-62496","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-62496"},"untrusted":{"vendor_name":"Quickjs Project","product_name":"Quickjs","desc_en":"A vulnerability exists in the QuickJS engine's BigInt string parsing logic (js_bigint_from_string) when attempting to create a BigInt from a string with an excessively large number of digits.\n\nThe function calculates the necessary number of bits (n_bits) required to store the BigInt using the formula:\n\n$$\\text{n\\_bits} = (\\text{n\\_digits} \\times 27 + 7) / 8 \\quad (\\text{for radix 10})$$\n\n  *  For large input strings (e.g., $79,536,432$ digits or more for base 10), the intermediate calculation $(\\text{n\\_digits} \\times 27 + 7)$ exceeds the maximum value of a standard signed 32-bit integer, resulting in an Integer Overflow.\n\n\n  *  The resulting n_bits value becomes unexpectedly small or even negative due to this wrap-around.\n\n\n  *  This flawed n_bits is then used to compute n_limbs, the number of memory \"limbs\" needed for the BigInt object. Since n_bits is too small, the calculated n_limbs is also significantly underestimated.\n\n\n  *  The function proceeds to allocate a JSBigInt object using this underestimated n_limbs.\n\n\n  *  When the function later attempts to write the actual BigInt data into the allocated object, the small buffer size is quickly exceeded, leading to a Heap Out-of-Bounds Write as data is written past the end of the allocated r->tab array.","affected":[{"untrusted_vendor":"QuickJS","untrusted_product":"QuickJS","versions":[]}],"references":[{"url":"https://bellard.org/quickjs/Changelog","tags":["Release Notes"]},{"url":"https://issuetracker.google.com/434193016","tags":["Exploit","Issue Tracking"]}]}}