Heap Buffer Overflow Vulnerability in Matio Package

matio Updated 19 May 2026

Summary

17/05/2026
HIGH
Yes i
High
Not published

OSV-2026-752: Heap-buffer-overflow in Mat_VarGetStructsLinear. Affects matio versions >= ac1c67c687533d2de55f96709ed4512d4c197801, < b838137cf3434bfe98bd9f1da904cb83eff4b804. Fixed in b838137cf3434bfe98bd9f1da904cb83eff4b804. 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

Matio is an open-source library designed for reading and writing MAT files, which are commonly used in MATLAB for storing data. It provides functionalities to manipulate complex data structures and is widely utilized in scientific computing and data analysis. However, like many software libraries, it is susceptible to vulnerabilities that can compromise its integrity and security.

Vulnerability Detail

The vulnerability identified is a heap buffer overflow in the function Mat_VarGetStructsLinear. This issue arises from improper handling of memory allocation, allowing an attacker to write beyond the allocated buffer. The consequences of this vulnerability can lead to application crashes, data corruption, or even arbitrary code execution, posing significant risks to systems that rely on the Matio library for data processing.

How To Fix

Minimum fixed version

b838137cf3434bfe98bd9f1da904cb83eff4b804

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, users are advised to avoid using the Mat_VarGetStructsLinear function until the package is updated. Additionally, implementing input validation and sanitization can help mitigate the risks associated with this vulnerability.

Conclusion

The heap buffer overflow vulnerability in the Matio package poses significant risks to applications that utilize this library for data processing. It is crucial for users to update to the patched version to ensure the security and integrity of their applications. Implementing workarounds and monitoring for vulnerabilities can further enhance security.

See every vulnerability recorded for matio →

Share this vulnerability

FAQ

A heap buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior.

Exploitation of this vulnerability can lead to application crashes, data corruption, or unauthorized code execution, which can compromise the security of your application.

Yes, a patch is available. Users should update to the fixed version of the Matio package to mitigate this vulnerability.

If immediate updates are not possible, avoid using the vulnerable function and implement input validation to reduce the risk of exploitation.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for matio.

How To Fix

Minimum fixed version

b838137cf3434bfe98bd9f1da904cb83eff4b804

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