Critical Stack Buffer Overflow Vulnerability in Tarantool

tarantool Updated 02 Oct 2025

Summary

08/04/2025
HIGH
Yes i
High
Not published

OSV-2025-267: Stack-buffer-overflow in snap_usedef. Affects tarantool versions >= 3d97334fa3e1ea6a94058c73137f115eb2160b3c, < 8c7cfb1cd0b3f5ce1d5b181403f68f7aaf657d9a. Fixed in 8c7cfb1cd0b3f5ce1d5b181403f68f7aaf657d9a. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Tarantool is an open-source in-memory database and application server designed for high performance and scalability. It supports Lua scripting and is often used for building real-time applications. The package is known for its flexibility and speed, making it a popular choice among developers. However, it has been identified to have a critical vulnerability that can lead to severe security issues.

Vulnerability Detail

The vulnerability is a stack-buffer-overflow that occurs in the function 'snap_usedef' within the Tarantool codebase. This issue was introduced in commit 3d97334fa3e1ea6a94058c73137f115eb2160b3c. If exploited, this vulnerability can lead to crashes and potential arbitrary code execution, compromising the integrity of the application. The crash state indicates that the overflow happens during the execution of Lua scripts, which can be triggered by malicious input.

How To Fix

Minimum fixed version

8c7cfb1cd0b3f5ce1d5b181403f68f7aaf657d9a

This is the first release that contains the fix.

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

Workaround

As a temporary workaround, you can implement input validation to sanitize any user inputs that may trigger the vulnerable function. This can help mitigate the risk until a patch is applied. For example, ensure that any Lua scripts executed do not contain unexpected or malicious data.

Conclusion

The stack buffer overflow vulnerability in Tarantool poses significant risks to applications utilizing this package. It is crucial to update to the latest version to mitigate these risks and ensure the security of your application. Implementing input validation can serve as a temporary measure while awaiting a patch.

See every vulnerability recorded for tarantool →

Share this vulnerability

FAQ

A stack buffer overflow occurs when data exceeds the allocated buffer space on the stack, potentially overwriting adjacent memory and leading to crashes or code execution.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to analyze your manifest file.

Failing to address this vulnerability can lead to application crashes, data corruption, and unauthorized access to sensitive information, putting your entire system at risk.

Yes, updating to the latest version of Tarantool that includes the patch for this vulnerability will ensure that your application is secure.

It is advisable to regularly check for vulnerabilities, especially after updates or changes to your application. Using tools like Vulert can help automate this process.

Related vulnerabilities

Recent vulnerabilities recorded for tarantool.

How To Fix

Minimum fixed version

8c7cfb1cd0b3f5ce1d5b181403f68f7aaf657d9a

This is the first release that contains the fix.

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