Security Vulnerability Report
中文
CVE-2025-50343 CVSS 9.8 CRITICAL

CVE-2025-50343

Published: 2025-12-30 20:16:00
Last Modified: 2026-01-09 19:38:19

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.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:* - VULNERABLE
matio 1.5.28

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
需要提取或生成PoC代码

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-50343", "sourceIdentifier": "[email protected]", "published": "2025-12-30T20:16:00.217", "lastModified": "2026-01-09T19:38:18.740", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "Se descubrió un problema en matio 1.5.28. Una corrupción de memoria basada en el heap puede ocurrir en Mat_VarCreateStruct() cuando el valor de nfields no coincide con el número real de cadenas en el array de campos. Esto conduce a lecturas fuera de límites y liberaciones de memoria no válidas durante la limpieza, lo que podría causar un fallo de segmentación o corrupción de memoria del heap."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-122"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:matio_project:matio:1.5.28:*:*:*:*:*:*:*", "matchCriteriaId": "5C31C201-4947-4AD9-AFF4-4E3B64D02EEE"}]}]}], "references": [{"url": "https://github.com/tbeu/matio/issues/275", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}, {"url": "https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/tbeu/matio/issues/275", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}, {"url": "https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}