#1100987 quickjs: CVE-2024-13903

Package:
src:quickjs
Source:
src:quickjs
Submitter:
Moritz Mühlenhoff
Date:
2025-04-03 13:48:02 UTC
Severity:
normal
Tags:
#1100987#5
Date:
2025-03-21 13:21:58 UTC
From:
To:
Hi,

The following vulnerability was published for quickjs.

CVE-2024-13903[0]:
| 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.

This was reported by a quickjs fork, but I suppose it also affects
the original quickjs packaged in Debian?

https://github.com/quickjs-ng/quickjs/issues/775
https://github.com/quickjs-ng/quickjs/commit/99c02eb45170775a9a679c32b45dd4000ea67aff


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2024-13903
https://www.cve.org/CVERecord?id=CVE-2024-13903

Please adjust the affected versions in the BTS as needed.

#1100987#16
Date:
2025-04-03 13:44:06 UTC
From:
To:
Hi

Moritz Mühlenhoff schrieb am 21.03.2025, 14:21 +0100:
[reordered]

This is hard to tell. The commit contains unrelated changes and for the
mentioned quickjs.c, the diff says:

Given that `JS_GetRuntime` is:

I cannot see immediately whether quickjs is affected. Due to a lack of time in the coming weeks, I would appreciate help.

Cheers
Sebastian

#1100987#21
Date:
2025-04-03 13:44:06 UTC
From:
To:
Hi

Moritz Mühlenhoff schrieb am 21.03.2025, 14:21 +0100:
[reordered]

This is hard to tell. The commit contains unrelated changes and for the
mentioned quickjs.c, the diff says:

Given that `JS_GetRuntime` is:

I cannot see immediately whether quickjs is affected. Due to a lack of time in the coming weeks, I would appreciate help.

Cheers
Sebastian