CVE-2025-54492CWE-121

A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.9.0 and Master Branch (35a819fa)

Critical · published August 25, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
51.9
In the wild
Unconfirmed
What it is

🔥 A stack-based buffer overflow lurks in libbiosig 3.9.0, and it only takes a specially crafted MFER file to unleash chaos! ⚠️ Think of this vulnerability like a tiny food container that can hold a much larger meal than intended. If you pour in too much, it overflows and spills everywhere, causing a big mess instead of containing what was meant to be inside. An attacker can take advantage of this overflow to execute arbitrary code, potentially allowing them to gain complete control over the system. This could lead to unauthorized access, data loss, or even a complete system takeover—absolutely devastating for any user relying on this library!

Put simply

Think of this vulnerability like a tiny food container that can hold a much larger meal than intended. If you pour in too much, it overflows and spills everywhere, causing a big mess instead of containing what was meant to be inside. The vulnerability stems from the MFER parsing functionality in libbiosig, specifically at line 9141 of biosig.c. When processing a MFER file with a tag of 67, the code incorrectly handles the buffer size, leading to an overflow of the integer `skew`, rather than the intended buffer, which can result in arbitrary code execution.

What to do

An attacker can take advantage of this overflow to execute arbitrary code, potentially allowing them to gain complete control over the system. This could lead to unauthorized access, data loss, or even a complete system takeover—absolutely devastating for any user relying on this library! To remediate this critical vulnerability, upgrade libbiosig to version 4.0.0 or a later version where this issue has been fixed. Additionally, review and validate all input files to ensure they conform to expected formats, and enable proper boundary checks in your application. This is fixable! Take these steps and you'll have this vulnerability patched in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00682 · 51.9th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2025-08-25T13:53Z
EPSS history
Timeline
  • 25 AUG 13:53Z
    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.9.0 and Master Branch (35a819fa)
    cvelistv5