Improper Validation of Specified Quantity in Input Affecting tbeu/matio package, versions [,1.5.30)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.4% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TBEUMATIO-14742513
  • published1 Jan 2026
  • disclosed30 Dec 2025
  • creditzakkanijia

Introduced: 30 Dec 2025

CVE-2025-50343  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade tbeu/matio to version 1.5.30 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the Mat_VarCreateStruct function when the nfields value does not match the actual number of strings in the fields array. An attacker can cause out-of-bounds reads and invalid memory frees by providing mismatched values, leading to segmentation faults or heap corruption.

CVSS Base Scores

version 4.0
version 3.1