← Back to CVEs
CVE-2025-50343
CRITICAL9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published12/30/2025
Last Modified1/9/2026
Sourcenvd
Honeypot Sightings0
Affected Products
matio_project:matio
Weaknesses (CWE)
CWE-122
References
https://github.com/tbeu/matio/issues/275(cve@mitre.org)
https://github.com/tbeu/matio/issues/275(134c704f-9b21-4f2e-91b3-4a467353bcc0)
https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md(134c704f-9b21-4f2e-91b3-4a467353bcc0)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.