{"id":"CVE-2025-62490","aliases":["DEBIAN-CVE-2025-62490","EUVD-2025-34784","GHSA-g55w-pj8g-frvg","UBUNTU-CVE-2025-62490"],"status":"published","title":"Use-after-free in js_print_object in QuickJS","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","severity":{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00407,"percentile":0.35507,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-416"],"published":"2025-10-16T15:51:06Z","modified":"2026-11-06T13:52:42Z","affected":[{"source":"osv","ecosystem":"Debian:13","package":"quickjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.04.26-1"]},{"source":"osv","ecosystem":"Debian:14","package":"quickjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.04.26-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"quickjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2024.01.13-5","2025.04.26-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"quickjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.04.26-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"quickjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2025.04.26-1","2025.04.26-1build1"]}],"products":[{"vendor":"quickjs","product":"quickjs"},{"vendor":"quickjs-ng","product":"quickjs"},{"vendor":"quickjs_project","product":"quickjs"}],"references":[{"url":"https://bellard.org/quickjs/Changelog","tags":["Release Notes","advisory","report"]},{"url":"https://issuetracker.google.com/434196651","tags":["Exploit","Issue Tracking","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62490"},{"url":"https://github.com/advisories/GHSA-g55w-pj8g-frvg"},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-62490","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-62490","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-62490","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-62490","title":"Use-after-free in js_print_object in QuickJS","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T15:51:06.1Z","modified":"2025-10-16T18:08:20.982Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","level":"high","assessor":"cna"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:32:54.87586Z"}],"euvd":[{"id":"EUVD-2025-34784","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T15:51:06Z","modified":"2025-10-16T18:08:20Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","level":"high"}],"updated_at":"2026-11-02T20:31:31.065489Z"}],"ghsa":[{"id":"GHSA-g55w-pj8g-frvg","title":"In quickjs, in js_print_object, when printing an array, the function first fetches the array...","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T18:30:24Z","modified":"2025-10-30T18:32:32Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/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","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:04:15.956958Z"}],"nvd":[{"id":"CVE-2025-62490","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T16:15:39.27Z","modified":"2026-10-19T16:10:00.26Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/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","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:11:39.069866Z"}],"osv":[{"id":"CVE-2025-62490","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T16:15:39.27Z","modified":"2026-04-10T05:33:07.318216Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:51.851511Z"},{"id":"DEBIAN-CVE-2025-62490","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T16:15:39.27Z","modified":"2026-10-23T17:47:39.027481731Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:47.697959Z"},{"id":"UBUNTU-CVE-2025-62490","description":"In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms-\u003erecords list, but once again, elements could be removed from the list during js_print_value call.","status":"published","published":"2025-10-16T16:15:00Z","modified":"2026-11-06T13:52:42.856108663Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-06T14:23:50.667493Z"}]}}
