CVE-2025-50343: Critical severity npm/matio vulnerability

Published Dec 30, 2025
·
Updated

An issue was discovered in matio 1.5.28. A heap-based memory corruption can occur in MatVarCreateStruct() 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.

Affected Software

2 affected components
npm/matio
Matio Project Matio=1.5.28

Event History

Dec 30, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-50343?

CVE-2025-50343 has a high severity rating due to its potential to cause heap-based memory corruption and lead to application crashes.

2

How do I fix CVE-2025-50343?

To fix CVE-2025-50343, ensure that the nfields value in the Mat_VarCreateStruct() function accurately matches the number of strings in the fields array.

3

Which versions of matio are affected by CVE-2025-50343?

CVE-2025-50343 affects matio version 1.5.28 and possibly earlier versions, as they contain the vulnerability.

4

What type of vulnerability is CVE-2025-50343?

CVE-2025-50343 is classified as a heap-based memory corruption vulnerability.

5

Can CVE-2025-50343 lead to data loss?

Yes, CVE-2025-50343 may lead to data loss due to out-of-bounds reads and invalid memory frees.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203