CVE-2026-3389
Received Received - Intake
Null Pointer Dereference in Squirrel sqstd_rex_newnode Function

Publication date: 2026-03-01

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability was determined in Squirrel up to 3.2. This vulnerability affects the function sqstd_rex_newnode in the library sqstdlib/sqstdrex.cpp. Executing a manipulation can lead to null pointer dereference. The attack can only be executed locally. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-01
Last Modified
2026-04-29
Generated
2026-05-27
AI Q&A
2026-03-01
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
squirrel-lang squirrel to 3.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-404 The product does not release or incorrectly releases a resource before it is made available for re-use.
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': "This vulnerability manifests as a NULL pointer dereference causing a segmentation fault (segfault) when compiling specially crafted regular expressions in the Squirrel language's regex module."}, {'type': 'paragraph', 'content': 'Detection involves reproducing the crash by running Squirrel compiled with AddressSanitizer (ASan) enabled and executing a crafted test case that triggers the fault.'}, {'type': 'paragraph', 'content': 'Suggested commands include building Squirrel with Release optimization and ASan enabled, then running the provided crashing test case:'}, {'type': 'list_item', 'content': 'Build Squirrel with ASan: `clang -fsanitize=address -O2 ...` (build instructions depend on environment)'}, {'type': 'list_item', 'content': 'Run the repro test case: `./build/bin/sq repro`'}, {'type': 'paragraph', 'content': 'Monitoring for segmentation faults or crashes in the Squirrel process when processing regex inputs can also help detect exploitation attempts.'}] [1, 3, 4]


What immediate steps should I take to mitigate this vulnerability?

There are no known patches or countermeasures currently provided by the Squirrel project for this vulnerability.

Since the exploit requires local access and causes denial of service via application crash, immediate mitigation steps include:

  • Restrict local access to systems running vulnerable versions of Squirrel up to 3.2.
  • Avoid processing untrusted or maliciously crafted regular expressions in Squirrel.
  • Consider replacing or upgrading the affected software if possible, or applying custom patches if available.

Monitoring for crashes and limiting user privileges can reduce the risk of exploitation.


How can this vulnerability impact me? :

This vulnerability primarily impacts the availability of the affected application by causing it to crash or exit unexpectedly.

An attacker with local access can exploit this flaw by providing a specially crafted regular expression that triggers a NULL pointer dereference, leading to a segmentation fault and potential denial of service.

There are no known mitigations or patches currently, and the maintainers have not responded to the issue, increasing the risk of exploitation.


Can you explain this vulnerability to me?

[{'type': 'paragraph', 'content': "CVE-2026-3389 is a NULL Pointer Dereference vulnerability in the Squirrel programming language's standard library, specifically in the regex module within the function sqstd_rex_newnode located in sqstdlib/sqstdrex.cpp."}, {'type': 'paragraph', 'content': 'This function is responsible for allocating or initializing new nodes in the regex Abstract Syntax Tree (AST). The vulnerability occurs when the function attempts to write to a NULL pointer due to failure in verifying the validity of pointers returned during node allocation or retrieval.'}, {'type': 'paragraph', 'content': 'This typically happens when the regex complexity exceeds internal limits or when memory allocation fails, causing a segmentation fault (crash) during the compilation of a specially crafted regular expression.'}, {'type': 'paragraph', 'content': 'The attack can only be executed locally, requiring local access to the environment running Squirrel.'}] [1, 2, 3]


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart