Double-Free Vulnerability in Biosig Package Leading to Arbitrary Code Execution

biosig Updated 02 Oct 2025

Summary

20/02/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-23809: A double-free vulnerability exists in the BrainVision ASCII Header Parsing functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0ee111). Affects biosig versions < 2.6.0-1. Fixed in 2.6.0-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Biosig Project provides the libbiosig library, which is designed for the processing and analysis of biosignal data. It supports various file formats, including the BrainVision ASCII Header format. The library is widely used in research and clinical settings for its ability to handle complex biosignal data efficiently. However, a critical vulnerability has been identified in versions prior to 2.6.0-1, which could allow attackers to exploit the library through specially crafted files.

Vulnerability Detail

A double-free vulnerability exists in the BrainVision ASCII Header Parsing functionality of the Biosig Project libbiosig versions 2.5.0 and earlier. This vulnerability arises from improper memory management, allowing an attacker to free the same memory location twice. By providing a maliciously crafted .vdhr file, an attacker can trigger this vulnerability, potentially leading to arbitrary code execution on the affected system. This poses significant security risks, as it could allow unauthorized access or control over the system running the vulnerable library.

How To Fix

Minimum fixed version

2.6.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade biosig

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users should avoid processing .vdhr files from untrusted sources until the package is updated to a secure version. Implementing strict file validation and sanitization can also help mitigate the risk of exploitation.

Conclusion

The identified double-free vulnerability in the Biosig package poses significant security risks, allowing for potential arbitrary code execution through specially crafted files. Users are strongly advised to update to the latest version to mitigate these risks and ensure the security of their systems.

See every vulnerability recorded for biosig →

Share this vulnerability

FAQ

A double-free vulnerability occurs when a program attempts to free the same memory location more than once, which can lead to memory corruption and potential arbitrary code execution.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring any installation.

Not fixing this vulnerability can expose your system to arbitrary code execution, allowing attackers to gain unauthorized access, manipulate data, or disrupt services.

Yes, avoid processing untrusted .vdhr files and implement strict file validation to mitigate the risk until the patch is applied.

More information about the Biosig Project and its functionalities can be found on its official website or documentation resources.

Related vulnerabilities

Recent vulnerabilities recorded for biosig.

How To Fix

Minimum fixed version

2.6.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade biosig

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback