Cloudanix VulnDB

CVE-2024-21812

Critical · 9.8

CVSS

9.8

EPSS

1.8%

Published

Feb 20, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a library that reads certain medical or scientific data files can let an attacker take over a computer simply by getting that computer 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

Integer overflow in sopen_FAMOS_read allows out-of-bounds write during parsing of a crafted .famos file, enabling arbitrary code execution.

Why it matters to the business

Attackers could gain full control of systems that process .famos files, leading to data theft, system compromise, or disruption of operations that rely on this library.

How an attack unfolds

An attacker creates a malicious .famos file that triggers the integer overflow during parsing; when the target application opens the file, the resulting out-of-bounds write is used to execute attacker-supplied code.

How to fix it

Upgrade libbiosig to a version that corrects the integer overflow in sopen_FAMOS_read; until available, avoid processing untrusted .famos files.

How to confirm the fix worked

Confirm the installed libbiosig version is newer than the vulnerable release and test file parsing against known-good and crafted .famos samples in a controlled environment.

Typical attack path

  1. Craft a .famos file containing values that trigger integer overflow in FAMOS reader
  2. Deliver the file to a target system via email, download, or shared storage
  3. Victim application or library opens and parses the file
  4. Overflow causes out-of-bounds write and arbitrary code execution

How to detect it

Review application logs and crash reports for unexpected terminations or errors while processing .famos files; inspect file-handling code paths for calls to the FAMOS reader.

What your security team should do

  • Identify all applications and services that depend on libbiosig and schedule upgrades
  • Block or sandbox processing of .famos files from untrusted sources until patched
  • Add .famos file handling to threat-modeling and code-review processes

The record

An integer overflow vulnerability exists in the sopen_FAMOS_read functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0ee111). A specially crafted .famos file can lead to an out-of-bounds write which in turn 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