CVE-2025-50343

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.
References
Link Resource
https://github.com/tbeu/matio/issues/275 Exploit Issue Tracking Third Party Advisory
https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md Exploit Third Party Advisory
https://github.com/tbeu/matio/issues/275 Exploit Issue Tracking Third Party Advisory
https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:*

History

17 Jun 2026, 09:35

Type Values Removed Values Added
Summary
  • (es) Se descubrió un problema en matio 1.5.28. Una corrupción de memoria basada en el heap puede ocurrir en Mat_VarCreateStruct() cuando el valor de nfields no coincide con el número real de cadenas en el array de campos. Esto conduce a lecturas fuera de límites y liberaciones de memoria no válidas durante la limpieza, lo que podría causar un fallo de segmentación o corrupción de memoria del heap.

09 Jan 2026, 19:38

Type Values Removed Values Added
First Time Matio Project matio
Matio Project
CPE cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:*
References () https://github.com/tbeu/matio/issues/275 - () https://github.com/tbeu/matio/issues/275 - Exploit, Issue Tracking, Third Party Advisory
References () https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md - () https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md - Exploit, Third Party Advisory

02 Jan 2026, 18:15

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CWE CWE-122
References () https://github.com/tbeu/matio/issues/275 - () https://github.com/tbeu/matio/issues/275 -
References () https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md - () https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md -

30 Dec 2025, 20:16

Type Values Removed Values Added
New CVE

Information

Published : 2025-12-30 20:16

Updated : 2026-06-17 09:35


NVD link : CVE-2025-50343

Mitre link : CVE-2025-50343

CVE.ORG link : CVE-2025-50343


JSON object : View

Products Affected

matio_project

  • matio
CWE
CWE-122

Heap-based Buffer Overflow