{"id":68769,"date":"2025-08-25T18:32:17","date_gmt":"2025-08-25T15:02:17","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-54487-the-biosig-project-libbiosig-mfer-parsing-stack-buffer-overflow\/"},"modified":"2025-08-25T18:32:17","modified_gmt":"2025-08-25T15:02:17","slug":"cve-2025-54487-the-biosig-project-libbiosig-mfer-parsing-stack-buffer-overflow","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-54487-the-biosig-project-libbiosig-mfer-parsing-stack-buffer-overflow\/","title":{"rendered":"CVE-2025-54487 &#8211; The Biosig Project libbiosig MFER Parsing Stack Buffer Overflow"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-54487<br \/>\n<br \/>\n<strong>Published : <\/strong> Aug. 25, 2025, 2:15 p.m. | 19\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>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:<\/p>\n<p>                else if (tag==12)    \/\/0x0C<br \/>\n                {<br \/>\n                    \/\/ sampling resolution<br \/>\n                    if (len&gt;6) fprintf(stderr,&#8221;Warning MFER tag12 incorrect length %i&gt;6n&#8221;,len);<br \/>\n                    val32   = 0;<br \/>\n                    int8_t  v8;<br \/>\n                    curPos += ifread(&amp;UnitCode,1,1,hdr);<br \/>\n                    curPos += ifread(&amp;v8,1,1,hdr);<br \/>\n                    curPos += ifread(buf,1,len-2,hdr);<\/p>\n<p>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.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 9.8 | CRITICAL<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-54487 Published : Aug. 25, 2025, 2:15 p.m. | 19\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-68769","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=68769"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68769\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=68769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=68769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=68769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}