CVE-2025-50343

9.8 CRITICAL
Published: December 30, 2025 Modified: January 09, 2026
View on NVD

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/tbeu/matio/issues/275
Source: cve@mitre.org
Exploit Issue Tracking Third Party Advisory
https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md
Source: cve@mitre.org
Exploit Third Party Advisory
https://github.com/tbeu/matio/issues/275
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit Issue Tracking Third Party Advisory
https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit Third Party Advisory

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
0.1%
22th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

matio_project