CVE-2024-54661
Critical · 9.8CVSS
9.8
EPSS
0.8%
Published
Dec 4, 2024
CISA due date
—
Cloudanix analysis
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
- Locate systems running vulnerable wpa packages on Ubuntu 14.04/16.04/18.04
- Prepare symlink or file at /tmp/$USER/stderr2
- Trigger execution of readline.sh via socat-related functionality
- 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
- CVE-2026-56123 socat versions 1.8.0.0 through 1.8.1.1 contain a heap-based buffer overflow vulnerability… Also affects socat
- CVE-2026-106566 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-61
- CVE-2026-105712 gpgtar in GnuPG before 2.5.19 can allow file overwrite via crafted data in an archive. CWE-61
- CVE-2026-79939 Dell PowerProtect Cyber Recovery, versions Prior to 20.3, contain an UNIX Symbolic Link… CWE-61
- CVE-2026-32657 Dell AppSync Version 4.6.0.0, Dell Metro Node Version 8.0.0, Dell UCC Edge Version 3.0.1… CWE-61
- CVE-2026-53802 rsync before 3.5.0 contains an arbitrary file read vulnerability that allows attackers to… CWE-61
- CVE-2026-62992 Smarty is a template engine for PHP, facilitating the separation of presentation… CWE-61
- CVE-2026-47763 pdm is a Python package and dependency manager supporting the latest PEP standards. CWE-61