Cloudanix VulnDB

CVE-2024-54661

Critical · 9.8

CVSS

9.8

EPSS

0.8%

Published

Dec 4, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in temporary file handling in certain network tools could let attackers take control of older systems if updates are not applied.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Race Condition
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

The vulnerability allows exploitation of a predictable temporary file path (/tmp/$USER/stderr2) in readline.sh, enabling race condition attacks that can result in arbitrary file manipulation or code execution with high impact on confidentiality, integrity, and availability.

Why it matters to the business

Potential for full system compromise on affected legacy Ubuntu systems using wpa, though low EPSS score, lack of KEV listing, and no ransomware usage indicate limited immediate operational disruption for most organizations.

How an attack unfolds

An attacker creates a symlink or malicious file at the predictable /tmp path prior to script execution, races the process to redirect stderr or input, and gains elevated access or injects commands.

How to fix it

Upgrade wpa packages to fixed versions: 2.1-0ubuntu1.5 on Ubuntu 14.04 LTS, 2.4-0ubuntu6.2 on Ubuntu 16.04 LTS, and 2.4-0ubuntu10 on Ubuntu 18.04 LTS; additionally update socat to 1.8.0.2 or later where applicable.

How to confirm the fix worked

Verify installed package versions against the listed fixed releases and confirm absence of the vulnerable readline.sh implementation relying on the predictable /tmp path.

Typical attack path

  1. Locate systems running vulnerable wpa packages on Ubuntu 14.04/16.04/18.04
  2. Prepare symlink or file at /tmp/$USER/stderr2
  3. Trigger execution of readline.sh via socat-related functionality
  4. Exploit race to achieve file overwrite or command execution

How to detect it

Review system logs for unexpected file operations or symlinks involving /tmp paths during wpa or socat execution, and inspect process activity for anomalous stderr redirection.

What your security team should do

  • Prioritize patching legacy Ubuntu systems running wpa to the specified fixed versions
  • Audit environments for any remaining use of socat versions before 1.8.0.2
  • Monitor for temporary file race indicators in /tmp during script execution

The record

readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 socat 0 1.7.4.1-2.el8_10
AlmaLinux:9 socat 0 1.7.4.1-6.el9_6.1
Alpine:v3.21 socat 0 0
Alpine:v3.22 socat 0 0
Debian:11 socat 0 No fix
Debian:12 socat 0 No fix
Debian:13 socat 0 1.8.0.2-1
Mageia:9 socat 0 1.8.0.2-1.mga9
SUSE:Linux Enterprise Micro 5.2 socat 0 1.7.3.2-150000.6.3.1
SUSE:Linux Enterprise Micro 5.3 socat 0 1.8.0.0-150400.14.6.1
SUSE:Linux Enterprise Micro 5.4 socat 0 1.8.0.0-150400.14.6.1
SUSE:Linux Enterprise Micro 5.5 socat 0 1.8.0.0-150400.14.6.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 socat 0 1.8.0.0-150400.14.6.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 socat 0 1.8.0.0-150600.20.6.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 socat 0 1.7.2.4-4.3.1
Ubuntu:16.04:LTS socat 0 No fix
Ubuntu:18.04:LTS socat 0 No fix
Ubuntu:20.04:LTS socat 0 No fix
Ubuntu:22.04:LTS socat 0 No fix
Ubuntu:24.04:LTS socat 0 No fix
Ubuntu:24.10 socat 0 No fix
Ubuntu:25.04 socat 0 No fix
Ubuntu:25.10 socat 0 No fix
Ubuntu:Pro:14.04:LTS socat 0 No fix
Ubuntu:Pro:16.04:LTS socat 0 No fix
Ubuntu:Pro:18.04:LTS socat 0 No fix
Ubuntu:Pro:20.04:LTS socat 0 No fix
openSUSE:Leap 15.5 socat 0 1.8.0.0-150400.14.6.1
openSUSE:Leap 15.6 socat 0 1.8.0.0-150600.20.6.1
openSUSE:Leap Micro 5.5 socat 0 1.8.0.0-150400.14.6.1
openSUSE:Tumbleweed socat 0 1.8.0.2-1.1

Related vulnerabilities