CVE-2025-50343

CVE-2025-50343

published December 31, 2025

CVSS
9.8
EPSS
0%
Percentile
34.0
In the wild
Unconfirmed
What it is

🔥 A mismatch in how many fields you think are in a structure could unleash chaos in matio 1.5.28! Think of this vulnerability like a recipe that calls for five ingredients, but your friend only brings four. When they mix up the dish, you might end up with a weird concoction that spills over everywhere – that’s what can happen in memory when those field counts don’t match up! This heap-based memory corruption can lead to out-of-bounds reads and invalid memory frees, resulting in segmentation faults or heap corruption that could bring your application crashing down. If exploited, attackers might leverage this to execute arbitrary code or cause critical disruptions to your service.

Put simply

Think of this vulnerability like a recipe that calls for five ingredients, but your friend only brings four. When they mix up the dish, you might end up with a weird concoction that spills over everywhere – that’s what can happen in memory when those field counts don’t match up! The issue occurs in the Mat_VarCreateStruct() function of matio, where the nfields value doesn't align with the actual number of strings in the fields array, leading to unsafe memory handling.

What to do

This heap-based memory corruption can lead to out-of-bounds reads and invalid memory frees, resulting in segmentation faults or heap corruption that could bring your application crashing down. If exploited, attackers might leverage this to execute arbitrary code or cause critical disruptions to your service. Patch to matio version 1.5.29 immediately to fix this critical vulnerability. Review your code for similar misconfigurations to prevent future issues. Additionally, implement memory safety checks to bolster your defenses. You’ve got this! Fixing this vulnerability will keep your projects safe and sound! 🛡️

The record
Technical detail
CVSS
9.8 · NONE
CVSS v4.0
Not supplied
EPSS
0.00411 · 34.0th percentile
Published
2025-12-31T01:16Z
EPSS history
Timeline
  • 30 DEC 00:00Z
    An issue was discovered in matio 1.5.28
    cvelistv5