CVE-2026-2858 Details
Description
A vulnerability was identified in wren-lang wren up to 0.4.0. This affects the function peekChar of the file src/vm/wren_compiler.c of the component Source File Parser. Such manipulation leads to out-of-bounds read. The attack needs to be performed locally. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.
A heap-based buffer overflow vulnerability has been identified in the Wren programming language, specifically in versions up to 0.4.0. The issue arises in the source file parser within the function 'peekChar', located in 'src/vm/wren_compiler.c'. This vulnerability allows for an out-of-bounds read, where the parser fails to correctly handle malformed string literals, particularly those with excessive quotes. As a result, the lexer reads beyond the allocated buffer, leading to a memory violation. The vulnerability can be exploited locally, and a public proof-of-concept exploit is available.
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 Feb 24, 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/i1217/repro | [email protected] | Issue TrackingProduct |
| https://github.com/wren-lang/wren/ | [email protected] | Product |
| https://github.com/wren-lang/wren/issues/1217 | [email protected] | Issue Tracking |
| https://vuldb.com/?ctiid.347097 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.347097 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.754489 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-125 | Out-of-bounds Read | [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] |
| Feb 26, 2026 | Initial Analysis | [email protected] |
| Feb 20, 2026 | New CVE Received | [email protected] |