Heap-Based Buffer Overflow in SQUIRREL 3.2: Vulnerability in Squirrel3 Package

squirrel3 Updated 02 Oct 2025

Summary

04/05/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-30292: Heap-based buffer overflow in sqbaselib.cpp in SQUIRREL 3.2 due to lack of a certain sq_reservestack call. Affects squirrel3 versions < 3.1-8.2. Fixed in 3.1-8.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Squirrel3 is an open-source scripting language designed for embedded systems, providing a high-level language with a syntax similar to Lua. It is widely used in various applications for its lightweight nature and ease of integration. However, the version 3.2 of Squirrel3 has been identified to have a critical vulnerability that can lead to severe security issues if not addressed.

Vulnerability Detail

The vulnerability is a heap-based buffer overflow found in the sqbaselib.cpp file of SQUIRREL 3.2. This issue arises from the absence of a specific sq_reservestack call, which can lead to memory corruption. Attackers can exploit this vulnerability to execute arbitrary code, potentially compromising the integrity and confidentiality of the affected systems. The vulnerability is classified under CVE-2022-30292 and affects both Debian 13 and 14 versions of the Squirrel3 package.

How To Fix

Minimum fixed version

3.1-8.2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade squirrel3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit the use of the affected Squirrel3 version in their applications until the update is applied. It is advisable to monitor the application for any unusual behavior that may indicate exploitation of this vulnerability.

Conclusion

The heap-based buffer overflow vulnerability in SQUIRREL 3.2 poses significant risks to applications using the Squirrel3 package. It is crucial to update to the patched version to safeguard against potential exploits. Users are encouraged to monitor their applications and utilize tools like Vulert for ongoing vulnerability management.

See every vulnerability recorded for squirrel3 →

Share this vulnerability

FAQ

A heap-based buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, leading to memory corruption and potential exploitation by attackers.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. By uploading your manifest file, such as package-lock.json, you can check if your application is affected by CVE-2022-30292.

Exploitation of this vulnerability can lead to arbitrary code execution, allowing attackers to gain unauthorized access to systems, manipulate data, or disrupt services.

Yes, limiting the use of the affected Squirrel3 version and monitoring for unusual application behavior can help mitigate risks until the patch is applied.

Detailed information about CVE-2022-30292 can be found in the Debian security advisories and on vulnerability databases like Vulert.

Related vulnerabilities

Recent vulnerabilities recorded for squirrel3.

How To Fix

Minimum fixed version

3.1-8.2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade squirrel3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback