CVE-2025-50343 Affecting libmatio package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.07% (22nd 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-UBUNTU2004-LIBMATIO-14849694
  • published6 Jan 2026
  • disclosed30 Dec 2025

Introduced: 30 Dec 2025

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

How to fix?

There is no fixed version for Ubuntu:20.04 libmatio.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libmatio package and not the libmatio package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

An issue was discovered in matio 1.5.28. A heap-based memory corruption can occur in Mat_VarCreateStruct() when the nfields value does not match the actual number of strings in the fields array. This leads to out-of-bounds reads and invalid memory frees during cleanup, potentially causing a segmentation fault or heap corruption.