
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-52581 is an integer overflow vulnerability in the GDF (General Data Format for Biosignals) parsing functionality of The Biosig Project libbiosig, leading to a heap-based buffer overflow and potential arbitrary code execution. It affects libbiosig version 3.9.0 and the Master Branch (commit 35a819fa). The vulnerability was disclosed to the vendor on 2025-08-06, patched on 2025-08-24, and publicly released on 2025-08-25. It carries a CVSS v3.1 base score of 9.8 (Critical) (Talos Advisory).
The root cause is a CWE-190 (Integer Overflow or Wraparound) in the read_header function within biosig.c. When parsing the GDF event table, the code computes 8 + hdr->EVENT.N * sze to determine the reallocation size for the hdr->AS.rawEventData heap buffer; both hdr->EVENT.N (number of events, read directly from the file) and sze (event size, derived from a flag byte in the file) are attacker-controlled. Because the multiplication result is implicitly cast to a 32-bit size_t, sufficiently large values cause the product to wrap around, resulting in a drastically undersized realloc allocation. A subsequent ifread (wrapping fread) then writes hdr->EVENT.N * sze bytes of attacker-controlled data into this undersized buffer, producing a heap-based buffer overflow. Talos researchers confirmed the condition using GDB and AddressSanitizer, demonstrating hdr->EVENT.N = 0xc000000f and sze = 0x14 yielding a realloc size of only 308 bytes instead of the expected ~64 GB (Talos Advisory).
Successful exploitation allows an unauthenticated remote attacker to write arbitrary attacker-controlled data past the end of a heap-allocated buffer, with high impacts on confidentiality, integrity, and availability. Depending on heap layout, this can lead to arbitrary code execution in the context of any application using libbiosig — including scientific and medical signal processing tools such as Octave/Matlab biosig APIs and sigviewer. Given libbiosig's use in medical device data processing environments, exploitation could compromise sensitive biomedical data and disrupt clinical workflows (Talos Advisory).
No public proof-of-concept exploit code has been confirmed, and there is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.091% (0.000910), indicating a low current probability of exploitation in the wild. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Cisco Talos researchers (Mark Bereza and Lilith) discovered and reported the vulnerability, and a Nessus detection plugin (ID 260414) is available (Talos Advisory, Feedly).
GDF followed by a version string (e.g., 1.25) to pass the getfiletype check. Ensure the header length field exceeds 255 to satisfy the minimum GDF header size requirement.EVENT.N) to a large value such as 0xc000000f (3,221,225,487). Set the flag byte so that sze computes to a value (e.g., 0x14 = 20) that, when multiplied by EVENT.N, overflows a 32-bit unsigned integer.read_header function processes the file, the expression 8 + hdr->EVENT.N * sze overflows, causing realloc to allocate a much smaller buffer (e.g., 308 bytes) than required.ifread/fread call writes EVENT.N * sze bytes of attacker-controlled data from the file into the undersized heap buffer, overflowing adjacent heap memory with arbitrary content..gdf files (especially GDF version 1.x format) submitted to systems running libbiosig; files with anomalously large event count fields in the GDF event table section.biosig.c:3686 or biosig.c:3687.heap-buffer-overflow or reading GDF eventtable failed messages; stack traces referencing read_header, sopen_extended, or fread in the context of libbiosig..gdf files via email, web upload, or network shares to systems running libbiosig-based applications (Talos Advisory).The vendor released a patch on 2025-08-24, prior to public disclosure. Users should update libbiosig to a version beyond the Master Branch commit 35a819fa that incorporates the fix. As interim mitigations: restrict processing of GDF files to trusted sources only, implement strict input validation or sandboxing around GDF file parsing, and disable or limit access to libbiosig-based file parsing services exposed to untrusted input. Monitor for exploitation attempts targeting GDF file ingestion endpoints (Talos Advisory, Red Hat CVE).
Cisco Talos published a detailed technical advisory (TALOS-2025-2233) crediting researchers Mark Bereza and Lilith for the discovery, with a thorough write-up including GDB and AddressSanitizer output demonstrating the exploit condition. The vulnerability was also covered in a Talos blog post discussing multiple vulnerabilities across libbiosig and other products. Red Hat has acknowledged the CVE in their security tracking. Community aggregators such as malware.news and vulnerability databases (VulDB, CIRCL) indexed the advisory shortly after public release (Talos Advisory, Talos Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."