CVE-2026-3385 Details
Description
A vulnerability was detected in wren-lang wren up to 0.4.0. Affected is the function resolveLocal of the file src/vm/wren_compiler.c. The manipulation results in uncontrolled recursion. Attacking locally is a requirement. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
A heap-buffer-underflow vulnerability leading to stack exhaustion has been identified in the Wren programming language, specifically in versions up to 0.4.0. The issue arises in the 'resolveLocal' function within 'src/vm/wren_compiler.c', where the compiler fails to control recursion properly. This flaw allows for excessive nesting of code blocks, causing the parser to enter a deep recursive state—over 300 frames deep—which can corrupt memory or miscalculate pointers when accessing local variables. As a result, the 'bcmp' function reads memory 766 bytes before the allocated buffer, creating a potential exploitation vector.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/oneafter/0122/blob/main/i1218/repro | [email protected] | Exploit |
| https://github.com/wren-lang/wren/ | [email protected] | Product |
| https://github.com/wren-lang/wren/issues/1218 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://vuldb.com/?ctiid.348271 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.348271 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.761305 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
| CWE-404 | Improper Resource Shutdown or Release | [email protected] |
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| wren wren | <= 0.4.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 10, 2026 | Initial Analysis | [email protected] |
| Mar 1, 2026 | New CVE Received | [email protected] |