CVE-2024-21795
Critical · 9.8CVSS
9.8
EPSS
1.8%
Published
Feb 20, 2024
CISA due date
—
Cloudanix analysis
A flaw in software that reads certain medical or biosignal files can let attackers take over a computer simply by getting the victim to open a bad file.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in .egi file parsing allows an attacker to overwrite memory and achieve arbitrary code execution.
Why it matters to the business
Systems that process untrusted .egi files can be fully compromised, resulting in data theft, ransomware deployment, or persistent unauthorized access with high urgency for any organization handling biosignal data.
How an attack unfolds
An attacker crafts a malicious .egi file that triggers the buffer overflow during parsing, causing the vulnerable application to execute attacker-supplied code when the file is opened or processed.
How to fix it
Update the libbiosig library to the latest patched release that resolves the .egi parsing overflow, rebuild any dependent applications, and enforce strict input validation or sandboxing for untrusted biosignal files.
How to confirm the fix worked
Confirm the installed library version is newer than the vulnerable release, run regression tests with known-good and boundary .egi files, and verify no crashes or memory corruption occur under fuzzing of the parser.
Typical attack path
- Identify or obtain a target application that uses the vulnerable .egi parsing library
- Craft a specially formatted .egi file containing oversized data to overflow the heap buffer
- Deliver the malicious file via email, web download, or shared storage
- Trick the victim into opening or processing the file with the vulnerable software
- Execute arbitrary code to establish persistence, exfiltrate data, or deploy additional payloads
How to detect it
Review application crash logs and memory dumps for heap corruption patterns when processing .egi files; correlate file open events with unexpected process creation or privilege escalation.
What your security team should do
- Immediately inventory all software using libbiosig and prioritize updates for internet-facing or high-value systems
- Block or quarantine .egi files from untrusted sources until patches are applied
- Add file-type sandboxing and content-disarmament controls for biosignal file handling
- Monitor EPSS and exploit maturity indicators for any rise in weaponization
The record
A heap-based buffer overflow vulnerability exists in the .egi parsing functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0ee111). A specially crafted .egi 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-22097 A double-free vulnerability exists in the BrainVision Header Parsing functionality of The… 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-112403 Pillow is a Python imaging library. CWE-122