Buffer overflow in Matio Project
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (32.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 32.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Matio Project — versions 1.5.28
Weakness classification (CWE)
References
- github.com/tbeu/matio/issues/275 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-50343?
- CVE-2025-50343 is a critical-severity vulnerability in Matio Project, classified under Heap-based Buffer Overflow. CVSS score: 9.8/10. Published 2025-12-30.
- How severe is CVE-2025-50343?
- Critical severity. CVSS v3 base score is 9.8 out of 10.