{"id":"CVE-2025-50343","details":"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.","modified":"2026-08-12T03:51:15.849417892Z","published":"2025-12-30T00:00:00Z","related":["openSUSE-SU-2026:10094-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50343.json"},"references":[{"type":"WEB","url":"https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50343.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50343"},{"type":"REPORT","url":"https://github.com/tbeu/matio/issues/275"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tbeu/matio","events":[{"introduced":"4677b3fd4030c52e0fe45a863c840c78fb56f9a3"},{"last_affected":"4677b3fd4030c52e0fe45a863c840c78fb56f9a3"}],"database_specific":{"source":"CPE_STRING","cpe":"cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.5.28"},{"last_affected":"1.5.28"}]}}],"versions":["1.5.28","v1.5.28"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-50343.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}