7.8
HIGH CVSS 3.1
CVE-2025-46687
QuickJS Heap Buffer Overflow
Description

quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.

INFO

Published Date :

April 27, 2025, 8:15 p.m.

Last Modified :

Jan. 14, 2026, 5:30 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-46687 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Quickjs_project quickjs
1 Quickjs-ng quickjs
1 Bellard quickjs
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
Solution
Update quickjs-ng to a version that includes the missing length check for strings.
  • Update quickjs-ng to a patched version.
  • Ensure the string length check is implemented.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-46687.

URL Resource
https://bellard.org/quickjs/Changelog Release Notes
https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a Patch
https://github.com/bellard/quickjs/issues/399 Exploit Issue Tracking Vendor Advisory
https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465 Patch
https://github.com/quickjs-ng/quickjs/issues/1018 Exploit Issue Tracking Vendor Advisory
https://github.com/quickjs-ng/quickjs/pull/1020 Issue Tracking Patch
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-46687 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-46687 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-46687 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 14, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:quickjs-ng:quickjs:*:*:*:*:*:*:*:* versions up to (including) 0.9.0 *cpe:2.3:a:bellard:quickjs:*:*:*:*:*:*:*:* versions up to (excluding) 2025-04-26
    Added Reference Type MITRE: https://bellard.org/quickjs/Changelog Types: Release Notes
    Added Reference Type MITRE: https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a Types: Patch
    Added Reference Type MITRE: https://github.com/bellard/quickjs/issues/399 Types: Exploit, Issue Tracking, Vendor Advisory
    Added Reference Type MITRE: https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465 Types: Patch
    Added Reference Type MITRE: https://github.com/quickjs-ng/quickjs/issues/1018 Types: Exploit, Issue Tracking, Vendor Advisory
    Added Reference Type MITRE: https://github.com/quickjs-ng/quickjs/pull/1020 Types: Issue Tracking, Patch
  • New CVE Received by [email protected]

    Apr. 27, 2025

    Action Type Old Value New Value
    Added Description quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
    Added CVSS V3.1 AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
    Added CWE CWE-770
    Added Reference https://bellard.org/quickjs/Changelog
    Added Reference https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
    Added Reference https://github.com/bellard/quickjs/issues/399
    Added Reference https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
    Added Reference https://github.com/quickjs-ng/quickjs/issues/1018
    Added Reference https://github.com/quickjs-ng/quickjs/pull/1020
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact