Skip to main content
CVE-2025-54487VulnerabilityPublished Updated

CVE-2025-54487: The Biosig Project libbiosig · Stack-based Buffer Overflow

Affects The Biosig Project libbiosigSource CVE Database V5

0

Not known to be exploited · CVSS 9.8 Critical.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
The Biosig Project libbiosigAffected
  • =3.9.0
Fixed in–

AI-suggested

1. Monitor the Biosig Project for official patches addressing CVE-2025-54487 and apply them immediately upon release. 2. Until patches are available, implement strict input validation to reject MFER files with suspicious or out-of-range length values, especially those with 'len' less than 2 or greater than 130. 3. Employ sandboxing or isolated environments for processing MFER files to contain potential exploitation attempts. 4. Conduct code audits and static analysis on any custom integrations of libbiosig to identify and remediate similar unsafe parsing patterns. 5. Restrict file sources and enforce strict access controls to minimize exposure to malicious MFER files, particularly in networked or shared environments. 6. Increase monitoring and logging around systems processing biosignal data to detect anomalous behavior indicative of exploitation attempts. 7. Educate developers and security teams about the risks of unsafe buffer handling and the specifics of this vulnerability to improve future resilience.

Description

A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.9.0 and Master Branch (35a819fa). A specially crafted MFER file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.This vulnerability manifests on line 8842 of biosig.c on the current master branch (35a819fa), when the Tag is 12: else if (tag==12) //0x0C { // sampling resolution if (len>6) fprintf(stderr,"Warning MFER tag12 incorrect length %i>6\n",len); val32 = 0; int8_t v8; curPos += ifread(&UnitCode,1,1,hdr); curPos += ifread(&v8,1,1,hdr); curPos += ifread(buf,1,len-2,hdr); In addition to values of `len` greater than 130 triggering a buffer overflow, a value of `len` smaller than 2 will also trigger a buffer overflow due to an integer underflow when computing `len-2` in this code path.

References

Community reviews

Loading reviews…