CVE-2024-54661
published 2024-12-04CVE-2024-54661: readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
PriorityP351critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.79%
51.8th percentile
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | socat | < socat 1.8.0.2-1 (forky) | socat 1.8.0.2-1 (forky) |
| dest-unreach | socat | >= 0 < 1.8.0.2-1 | 1.8.0.2-1 |
| dest-unreach | socat | >= 0 < 1.8.0.2-1 | 1.8.0.2-1 |
| dest-unreach | socat | >= 1.6.0.0 < 1.8.0.2 | 1.8.0.2 |
| dest-unreach | socat | 2.0.0-b1 – 2.0.0-b9 | — |
| msrc | azl3_socat_1.7.4.4-2_on_azure_linux_3.0 | — | — |
| msrc | cbl2_socat_1.7.4.3-2_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_redhat9.8CRITICAL
vendor_msrc5.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
vendor_msrc·2024-12-10·CVSS 5.0
CVE-2024-54661 [CRITICAL] CWE-61 readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Refere
Red Hat
socat: arbitrary file overwrite via predictable /tmp directory
vendor_redhat·2024-12-04·CVSS 9.8
CVE-2024-54661 [CRITICAL] CWE-377 socat: arbitrary file overwrite via predictable /tmp directory
socat: arbitrary file overwrite via predictable /tmp directory
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
A flaw was found in the readline.sh script of Socat through version 1.8.0.1. This vulnerability can allow attackers to exploit improper use of a predictable temporary file.
Package: socat (Red Hat Enterprise Linux 7) - Out of support scope
Package: rhcos (Red Hat OpenShift Container Platform 4) - Fix deferred
Debian
CVE-2024-54661: socat - readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
vendor_debian·2024·CVSS 9.8
CVE-2024-54661 [CRITICAL] CVE-2024-54661: socat - readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 1.8.0.2-1)
sid: resolved (fixed in 1.8.0.2-1)
trixie: resolved (fixed in 1.8.0.2-1)
OSV
CVE-2024-54661: readline
osv·2024-12-04·CVSS 9.8
CVE-2024-54661 [CRITICAL] CVE-2024-54661: readline
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
GHSA
GHSA-x9w4-r3mh-39fw: readline
ghsa_unreviewed·2024-12-04
CVE-2024-54661 [CRITICAL] CWE-61 GHSA-x9w4-r3mh-39fw: readline
readline.sh in socat through 1.8.0.1 relies on the /tmp/$USER/stderr2 file.
No detection rules found.
No public exploits indexed.
2024-12-04
Published