Skip to content
Heist/ feed
Back to feed
High

quickjs — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-46688

quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.

Products
quickjs
Affected versions
2021.03.27-1, 2021.03.27-1ubuntu0.1~esm1, 2024.01.13-5, 2025.04.26-1, 2025.04.26-1build1
Fixed versions
Not specified
CVEs
CVE-2025-46688
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:28 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-46688

core-osv · Original source

Published 27 Apr 2025, 20:15 UTC

quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.

osv:UBUNTU-CVE-2025-46688

quickjs

Fixed versions: Not specified

quickjs

Fixed versions: Not specified

quickjs

Fixed versions: Not specified

quickjs

Fixed versions: Not specified

Complete source record
{
  "id": "3c9f3938aba87e45134ea5a942d5a29d319e93c11f873ce3bb33d5b9055c5b7f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-46688",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-46688",
    "summary": "quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.",
    "evidence": "osv:UBUNTU-CVE-2025-46688",
    "products": [
      {
        "name": {
          "value": "quickjs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2021.03.27-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2021.03.27-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "quickjs",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2024.01.13-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2025.04.26-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "quickjs",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2025.04.26-1build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "quickjs",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2025.04.26-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2025.04.26-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-46688",
      "aliases": [
        "UBUNTU-CVE-2025-46688"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quickjs",
            "purl": "pkg:deb/ubuntu/quickjs?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "2021.03.27-1",
            "2021.03.27-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46688.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libquickjs",
                "binary_version": "2021.03.27-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "quickjs",
                "binary_version": "2021.03.27-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quickjs",
            "purl": "pkg:deb/ubuntu/quickjs?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2024.01.13-5",
            "2025.04.26-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46688.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libquickjs",
                "binary_version": "2025.04.26-1"
              },
              {
                "binary_name": "quickjs",
                "binary_version": "2025.04.26-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quickjs",
            "purl": "pkg:deb/ubuntu/quickjs?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2025.04.26-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46688.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libquickjs",
                "binary_version": "2025.04.26-1build1"
              },
              {
                "binary_name": "quickjs",
                "binary_version": "2025.04.26-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quickjs",
            "purl": "pkg:deb/ubuntu/quickjs?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2025.04.26-1",
            "2025.04.26-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46688.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libquickjs",
                "binary_version": "2025.04.26-1build1"
              },
              {
                "binary_name": "quickjs",
                "binary_version": "2025.04.26-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:52.222649230Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-46688"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-46688",
        "https://www.cve.org/CVERecord?id=CVE-2025-46688",
        "https://github.com/quickjs-ng/quickjs/issues/1018",
        "https://github.com/bellard/quickjs/issues/399",
        "https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a",
        "https://bellard.org/quickjs/Changelog",
        "https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465",
        "https://github.com/quickjs-ng/quickjs/pull/1020"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-46688",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356486,
  "published_at": "2025-04-27T20:15:00+00:00"
}