
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-2657 is a stack-based buffer overflow vulnerability in the printError function of the Wren scripting language compiler (src/vm/wren_compiler.c), affecting wren-lang/wren versions up to and including 0.4.0. The flaw was reported via a GitHub issue on January 22, 2026, and publicly disclosed on February 18, 2026. It carries a CVSS v3.1 base score of 5.5 (Medium), requiring local access and low privileges to exploit (Feedly, GitHub Issue).
The root cause is improper use of the unsafe vsprintf function in the printError function (line 432 of src/vm/wren_compiler.c), which writes a formatted error message into a fixed-size stack buffer (approximately 159 bytes) without bounds checking — classified as CWE-121 (Stack-based Buffer Overflow) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). When a Wren script triggers a compilation error with a sufficiently long method name or format argument (e.g., via declareMethod), vsprintf writes past the buffer boundary, corrupting the stack. Exploitation requires local access and the ability to supply a crafted Wren script to the interpreter; a public proof-of-concept reproducer file and harness code are available (GitHub Issue, PoC Repo).
Successful exploitation causes a denial of service via application crash (stack corruption leading to abort), with no impact on confidentiality or data integrity. The vulnerability is limited in scope to the availability of the Wren VM process; it does not enable remote code execution, privilege escalation, or data exfiltration based on current analysis. Applications embedding the Wren scripting engine and processing untrusted scripts are most at risk (Feedly, GitHub Issue).
A public proof-of-concept exploit (a crafted Wren script reproducer) is available on GitHub, and the ASAN-confirmed crash was demonstrated on Linux x86_64 in release mode. There is no evidence of in-the-wild exploitation at this time, and the vulnerability has not been added to the CISA Known Exploited Vulnerabilities catalog. The EPSS score is approximately 0.013% (0.000130), reflecting low probability of active exploitation. The project maintainers had not responded to the issue report as of the disclosure date (Feedly, PoC Repo).
class Teskkkk...t { Nys(.prin{t(7H%©m...) designed to trigger a compilation error with a format string argument exceeding the 159-byte stack buffer in printError../bin/harness repro using the published harness code).declareMethod function calls error, which calls printError; vsprintf writes the oversized error message past the stack buffer boundary, corrupting the stack and causing the process to abort.wren_compiler.c:432 (GitHub Issue, PoC Repo).stack-buffer-overflow in printError / vsprintf at wren_compiler.c:432.declareMethod or wrenCompile..wren script files with excessively long class/method names submitted to the interpreter.vsprintf, printError, error, declareMethod, and wrenInterpret (GitHub Issue).The Feedly data indicates a patch is available; organizations should upgrade wren-lang/wren from version 0.4.0 or earlier to the latest patched release as the primary remediation. As a workaround, restrict local system access so that only trusted users can supply scripts to the Wren interpreter, and avoid processing untrusted Wren source files with vulnerable versions. Monitor for unexpected application crashes that may indicate exploitation attempts. The upstream project had not formally responded to the issue report at the time of disclosure, so users should monitor the wren-lang/wren GitHub repository for official patch releases (Feedly, GitHub Issue).
Red Hat has tracked this CVE in their security advisory database, though no specific Red Hat products are listed as affected. No significant public researcher commentary, vendor statements, or media coverage beyond standard vulnerability database aggregation has been identified for this vulnerability (Red Hat Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."