{"id":"DEBIAN-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-09-25T06:00:06.770833738Z","published":"2025-12-30T20:16:00.217Z","upstream":["CVE-2025-50343"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-50343"}],"affected":[{"package":{"name":"libmatio","ecosystem":"Debian:12","purl":"pkg:deb/debian/libmatio?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.23-2+deb12u1"}]}],"versions":["1.5.23-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2025-50343.json"}},{"package":{"name":"libmatio","ecosystem":"Debian:13","purl":"pkg:deb/debian/libmatio?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.28-2","1.5.29-1","1.5.30-1","1.5.30-2","1.5.30-3","1.5.30-4","1.6.0-1"],"ecosystem_specific":{"urgency":"unimportant"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2025-50343.json"}},{"package":{"name":"libmatio","ecosystem":"Debian:14","purl":"pkg:deb/debian/libmatio?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.30-2"}]}],"versions":["1.5.28-2","1.5.29-1","1.5.30-1"],"ecosystem_specific":{"urgency":"unimportant"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-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"}]}