CVE-2024-22097
Critical · 9.8CVSS
9.8
EPSS
1.6%
Published
Feb 20, 2024
CISA due date
—
Cloudanix analysis
A bug in software that reads certain medical signal files could let an attacker take control of a computer simply by getting a victim to open a specially made file.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Double-free condition during BrainVision header parsing of .vdhr files in libbiosig allows an attacker-supplied file to corrupt memory and achieve arbitrary code execution.
Why it matters to the business
Systems that parse untrusted .vdhr files risk remote compromise, data theft, or ransomware deployment; although exploitation remains uncommon, the high severity means any unpatched installation in medical or research workflows represents a significant operational risk.
How an attack unfolds
An attacker creates a malformed .vdhr file that triggers the double-free during header parsing; the file is delivered to a target application that links against the vulnerable libbiosig library, causing memory corruption that is turned into code execution.
How to fix it
Upgrade libbiosig to a version containing the fix for the BrainVision header parser; rebuild and redeploy all dependent applications; remove or quarantine any remaining copies of the vulnerable master branch or 2.5.0 release.
How to confirm the fix worked
Confirm the installed libbiosig version is newer than the affected commits; run the library's test suite against known-good and crafted .vdhr samples; monitor process memory for double-free crashes during parsing.
Typical attack path
- Craft a .vdhr file containing a malicious BrainVision header
- Deliver the file via email, download, or shared storage
- Victim application opens the file and invokes libbiosig parsing
- Double-free corrupts heap structures
- Attacker-controlled data leads to arbitrary code execution
How to detect it
Search application and system logs for unexpected crashes or errors while processing .vdhr files; inspect process dumps or sanitizer reports for double-free signatures in the BrainVision parsing path; correlate file-creation events with subsequent suspicious process behavior.
What your security team should do
- Prioritize inventory of all applications linking libbiosig and schedule immediate updates
- Block or sandbox processing of .vdhr files from untrusted sources until patched
- Add .vdhr file handling to threat-hunting playbooks and SIEM rules
The record
A double-free vulnerability exists in the BrainVision Header Parsing functionality of The Biosig Project libbiosig Master Branch (ab0ee111) and 2.5.0. A specially crafted .vdhr file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | biosig | 0 | No fix |
| Debian:12 | biosig | 0 | No fix |
| Debian:13 | biosig | 0 | 2.6.0-1 |
| Debian:14 | biosig | 0 | 2.6.0-1 |
| Ubuntu:22.04:LTS | biosig | 0 | No fix |
| Ubuntu:24.04:LTS | biosig | 0 | No fix |
| Ubuntu:24.10 | biosig | 0 | 2.6.0-1ubuntu1 |
Related vulnerabilities
- CVE-2024-23809 A double-free vulnerability exists in the BrainVision ASCII Header Parsing functionality… Also affects biosig
- CVE-2024-23313 An integer underflow vulnerability exists in the sopen_FAMOS_read functionality of The… Also affects biosig
- CVE-2024-23606 An out-of-bounds write vulnerability exists in the sopen_FAMOS_read functionality of The… Also affects biosig
- CVE-2024-23310 A use-after-free vulnerability exists in the sopen_FAMOS_read functionality of The Biosig… Also affects biosig
- CVE-2024-21795 A heap-based buffer overflow vulnerability exists in the .egi parsing functionality of… Also affects biosig
- CVE-2024-21812 An integer overflow vulnerability exists in the sopen_FAMOS_read functionality of The… Also affects biosig
- CVE-2024-23305 An out-of-bounds write vulnerability exists in the BrainVisionMarker Parsing… Also affects biosig
- CVE-2026-109271 ImageMagick 7.1.2-30 before 7.1.2-32 contains a use after free vulnerability in the… CWE-415