CVE-2026-3387

wren-lang wren wren_compiler.c getByteCountForArguments null pointer dereference

Published Mar 1, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability has been found in wren-lang wren up to 0.4.0. Affected by this issue is the function getByteCountForArguments of the file src/vm/wren_compiler.c. Such manipulation leads to null pointer dereference. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The reported flaw is a null pointer dereference in the getByteCountForArguments function of wren’s compiler, which can cause the interpreter to crash or terminate unexpectedly. Because the error occurs during argument handling, a malformed script or data supplied locally can trigger this failure, resulting in a denial of service for any process running wren. The vulnerability is classified as a local fault; it does not provide the attacker with code execution or privilege escalation capabilities.

Affected Systems

The issue applies to the wren programming language maintained by wren-lang, with affected releases up to and including version 0.4.0. Any systems that embed or run wren scripts built with these versions are potentially vulnerable.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate risk, and the EPSS score of less than 1 % shows that, at the time of analysis, the probability of exploitation observed in the wild is very low. The vulnerability is only exploitable by someone with local access to the environment running wren; it is not remotely reachable, and the vulnerability is not listed in CISA’s Known Exploited Vulnerabilities catalog. Because the exploit has been disclosed publicly, users must monitor for a patch and limit local privileges until a fix is applied. The likely attack vector is local; an attacker would need to supply crafted input to the interpreter.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest release of wren once the security fix is available; this removes the vulnerable code path.
  • If upgrading is not immediately possible, isolate or sandbox any applications that rely on wren so that local users cannot supply arbitrary scripts and restrict write permissions to the compiler source to prevent tampering.
  • Keep an eye on the official wren project’s issue tracker and mailing lists for updates; if a patch or rollback is released, apply it promptly.

Generated by OpenCVE AI on April 17, 2026 at 13:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wren
Wren wren
CPEs cpe:2.3:a:wren:wren:*:*:*:*:*:*:*:*
Vendors & Products Wren
Wren wren
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wren-lang
Wren-lang wren
Vendors & Products Wren-lang
Wren-lang wren
Type Values Removed Values Added
Description A vulnerability has been found in wren-lang wren up to 0.4.0. Affected by this issue is the function getByteCountForArguments of the file src/vm/wren_compiler.c. Such manipulation leads to null pointer dereference. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Title wren-lang wren wren_compiler.c getByteCountForArguments null pointer dereference
Weaknesses CWE-404
CWE-476
References
Metrics cvssV2_0

{'score': 1.7, 'vector': 'AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 2, 2026, 7:35 PM
Reserved
Feb 28, 2026, 2:49 PM
Status
Analyzed
Published
Mar 1, 2026, 10:16 AM
Modified
Jun 17, 2026, 10:43 AM