CVE-2025-50343CRITICAL 9.8EPSS p26.0%

CVE-2025-50343CVE-2025-50343

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.

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS0.34% probability of exploitation · percentile 26.0% · 2026-06-18T12:00:27Z
Published2025-12-30
Last modified2026-01-09

Underlying weaknesses· 1

CWE-122

References

  1. https://github.com/tbeu/matio/issues/275
  2. https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md
  3. https://github.com/tbeu/matio/issues/275
  4. https://github.com/zakkanijia/POC/blob/main/matio/CVE-2025-50343/matio.md

1

TypeTargetConfidenceTier
WeaknessHeap-based Buffer Overflowcwe-1220%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2025-2337
CVE
CVE-2025-2338
CVE
CVE-2025-59613
CVE
CVE-2026-27143
CVE
CVE-2025-59606
CVE
CVE-2026-25260
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.