Security advisory
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. NOTE: Multiple third-parties note that the available evidence does not demonstrate a vulnerability exploitable through an attacker-controlled input path.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-50343
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:06 UTC · Revision 1
Source evidence
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. NOTE: Multiple third-parties note that the available evidence does not demonstrate a vulnerability exploitable through an attacker-controlled input path.
osv:CVE-2025-50343
Complete source record
{
"id": "932561dbb13542330817e8755093b6eabbd64203186d9f59f3cb3b8d834d9a5c",
"url": "https://osv.dev/vulnerability/CVE-2025-50343",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-50343",
"summary": "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. NOTE: Multiple third-parties note that the available evidence does not demonstrate a vulnerability exploitable through an attacker-controlled input path.",
"evidence": "osv:CVE-2025-50343",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-50343",
"aliases": [
"CVE-2025-50343"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tbeu/matio",
"type": "GIT",
"events": [
{
"introduced": "4677b3fd4030c52e0fe45a863c840c78fb56f9a3"
},
{
"last_affected": "4677b3fd4030c52e0fe45a863c840c78fb56f9a3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.5.28"
},
{
"last_affected": "1.5.28"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.5.28",
"v1.5.28"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-50343.json"
}
}
],
"modified": "2026-10-20T11:08:23.800821691Z",
"provider": "osv",
"references": [
"https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50343.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-50343",
"https://github.com/tbeu/matio/issues/275"
],
"provider_metadata": {
"isDisputed": true,
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50343.json"
}
},
"related_cves": [
{
"value": "CVE-2025-50343",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387124,
"published_at": "2025-12-30T00:00:00+00:00"
}