Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3384: Uncontrolled Recursion in ChaiScript

0
Medium
VulnerabilityCVE-2026-3384cvecve-2026-3384
Published: Sun Mar 01 2026 (03/01/2026, 08:02:08 UTC)
Source: CVE Database V5
Product: ChaiScript

Description

A security vulnerability has been detected in ChaiScript up to 6.1.0. This impacts the function chaiscript::eval::AST_Node_Impl::eval/chaiscript::eval::Function_Push_Pop of the file include/chaiscript/language/chaiscript_eval.hpp. The manipulation leads to uncontrolled recursion. An attack has to be approached locally. The exploit has been disclosed publicly and may be used. The project was informed of the problem early through an issue report but has not responded yet.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/09/2026, 01:20:32 UTC

Technical Analysis

CVE-2026-3384 identifies a vulnerability in the ChaiScript scripting engine, specifically affecting versions 6.0 and 6.1.0. The issue resides in the evaluation logic within the source file chaiscript_eval.hpp, notably in the functions chaiscript::eval::AST_Node_Impl::eval and chaiscript::eval::Function_Push_Pop. These functions handle the execution of abstract syntax tree nodes and function call stack management, respectively. The vulnerability manifests as uncontrolled recursion triggered by crafted input or script code, which causes the interpreter to enter a recursive loop without proper termination conditions. This uncontrolled recursion can lead to stack overflow or exhaustion of system resources, resulting in denial of service (DoS) conditions. The attack vector is local, requiring an attacker to have some level of local access and privileges to execute malicious scripts or inputs. No authentication bypass or remote exploitation is indicated. The vulnerability was responsibly disclosed early to the ChaiScript project, but no patch or official fix has been released as of the publication date. The CVSS 4.0 vector indicates low attack complexity, local attack vector, and limited privileges required, with no user interaction or confidentiality/integrity impact, culminating in a medium severity rating with a base score of 4.8. There are no known exploits in the wild yet, but public disclosure increases the risk of exploitation attempts.

Potential Impact

The primary impact of CVE-2026-3384 is denial of service through resource exhaustion caused by uncontrolled recursion in the ChaiScript interpreter. Organizations embedding ChaiScript in their applications or using it for local scripting could experience application crashes or degraded performance, potentially disrupting critical workflows or services. Since the attack requires local access and limited privileges, the threat is more relevant in environments where multiple users share access or where untrusted code execution is possible. Confidentiality and integrity impacts are minimal or nonexistent, but availability degradation can affect operational continuity. Systems relying heavily on ChaiScript for automation, configuration, or embedded scripting in industrial, IoT, or development environments are at higher risk. The lack of an official patch increases exposure time, and public exploit disclosure may lead to increased attempts to leverage this vulnerability.

Mitigation Recommendations

To mitigate CVE-2026-3384, organizations should first assess whether they use affected versions of ChaiScript (6.0 or 6.1.0) in their environments. Since no official patch is available, consider the following specific actions: 1) Restrict local access to systems running ChaiScript to trusted users only, minimizing the risk of local exploitation. 2) Implement strict input validation and sanitization on scripts or data processed by ChaiScript to prevent malicious recursive constructs. 3) Introduce resource limits such as maximum recursion depth or execution timeouts within the scripting environment or host application to prevent runaway recursion. 4) If feasible, disable or sandbox scripting capabilities where untrusted code execution is possible. 5) Monitor logs and system behavior for signs of excessive recursion or resource exhaustion. 6) Engage with the ChaiScript community or maintainers for updates or unofficial patches. 7) Consider upgrading to future versions once a fix is released. These targeted mitigations go beyond generic advice by focusing on controlling recursion and limiting local attack surfaces.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-02-28T14:23:22.407Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69a3f82232ffcdb8a20b78ab

Added to database: 3/1/2026, 8:26:10 AM

Last enriched: 3/9/2026, 1:20:32 AM

Last updated: 4/20/2026, 9:33:25 AM

Views: 100

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses