CVE-2024-13903

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-13903
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-13903.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-13903
Downstream
Related
Published
2025-03-21T07:15:34Z
Modified
2025-10-16T19:02:01.322120Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A vulnerability was found in quickjs-ng QuickJS up to 0.8.0. It has been declared as problematic. Affected by this vulnerability is the function JS_GetRuntime of the file quickjs.c of the component qjs. The manipulation leads to stack-based buffer overflow. The attack can be launched remotely. Upgrading to version 0.9.0 is able to address this issue. The patch is named 99c02eb45170775a9a679c32b45dd4000ea67aff. It is recommended to upgrade the affected component.

References

Affected packages

Git / github.com/quickjs-ng/quickjs

Affected ranges

Type
GIT
Repo
https://github.com/quickjs-ng/quickjs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v0.*

v0.1.0
v0.2.0
v0.3.0
v0.4.0
v0.4.1
v0.5.0
v0.6.0
v0.6.1
v0.7.0
v0.8.0

Database specific

vanir_signatures

[
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/quickjs-ng/quickjs/commit/99c02eb45170775a9a679c32b45dd4000ea67aff",
        "signature_version": "v1",
        "target": {
            "file": "quickjs.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "253342739968080152675623370583741246515",
                "26929443413107497599413907615511137412",
                "139524748143098737331343606434443895723",
                "118707132374998298407380049557810927588"
            ]
        },
        "id": "CVE-2024-13903-70f40dea"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/quickjs-ng/quickjs/commit/99c02eb45170775a9a679c32b45dd4000ea67aff",
        "signature_version": "v1",
        "target": {
            "file": "qjs.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "257114536561312992890589829627078738473",
                "66125382193733348060935017930498788445",
                "134370446283750635284435754214241782110",
                "158596873491203045536936989144437150100",
                "44949990244863072932799353180410922024",
                "158610836437666349823118623174387833131"
            ]
        },
        "id": "CVE-2024-13903-a5f1daa4"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://github.com/quickjs-ng/quickjs/commit/99c02eb45170775a9a679c32b45dd4000ea67aff",
        "signature_version": "v1",
        "target": {
            "function": "update_stack_limit",
            "file": "quickjs.c"
        },
        "digest": {
            "function_hash": "114013698416327942258781181845749913924",
            "length": 289.0
        },
        "id": "CVE-2024-13903-d2fde6ff"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/quickjs-ng/quickjs/commit/99c02eb45170775a9a679c32b45dd4000ea67aff",
        "signature_version": "v1",
        "target": {
            "file": "cutils.h"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "230472178822044101541962925152211272321",
                "159119559489250276871777420443839202286",
                "268671691375117122506179823891229832660",
                "171041176490008781678495392901295085204",
                "41132274675036934156185280976731606799",
                "17806183305850854223088119730932543253",
                "256682035493930696008753233542941802596",
                "336730483230020245266573060369600684923",
                "281889425243590391227883665286636029038",
                "203985562977149419433829773200200004796"
            ]
        },
        "id": "CVE-2024-13903-f5bab00d"
    }
]