CVE-2024-54661
readline.sh in socat through 1.8.0.1 relies on the /tmp/$USER/stderr2 file.
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-61
- Updated
- 2026-11-02
EUVDEUVD-2024-52644
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
EUVD-2024-52644- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x9w4-r3mh-39fw
9.8
readline.sh in socat through 1.8.0.1 relies on the /tmp/$USER/stderr2 file.
readline.sh in socat through 1.8.0.1 relies on the /tmp/$USER/stderr2 file.
- Record
GHSA-x9w4-r3mh-39fw- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-61
- Updated
- 2026-11-02
NVD
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-61
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-54661
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
ALPINE-CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2024-54661
9.8
- Record
BELL-CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 25 moreShow less
OSVDEBIAN-CVE-2024-54661
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
DEBIAN-CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2024-2580
9.8
socat security update
Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these.
Security Fix(es):
readline.sh in socat through 1.8.0.1 relies on the /tmp/$USER/stderr2 file.(CVE-2024-54661)
- Record
OESA-2024-2580- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2025:10353
5.3
Red Hat Security Advisory: socat security update
- Record
RHSA-2025:10353- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2025:10544
5.3
Red Hat Security Advisory: socat security update
- Record
RHSA-2025:10544- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2025:10646
5.3
Red Hat Security Advisory: socat security update
- Record
RHSA-2025:10646- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2025:11042
5.3
Red Hat Security Advisory: socat security update
- Record
RHSA-2025:11042- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRLSA-2025:10353
5.3
Moderate: socat security update
The socat utility establishes bi-directional byte streams and transfers data between them. The utility can establish streams between a large set of channels, such as files, pipes, devices, and sockets.
Security Fix(es):
- socat: arbitrary file overwrite via predictable /tmp directory (CVE-2024-54661)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2025:10353- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRLSA-2025:11042
5.3
Moderate: socat security update
The socat utility establishes bi-directional byte streams and transfers data between them. The utility can establish streams between a large set of channels, such as files, pipes, devices, and sockets.
Security Fix(es):
- socat: arbitrary file overwrite via predictable /tmp directory (CVE-2024-54661)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2025:11042- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-54661
9.8
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
UBUNTU-CVE-2024-54661- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVALSA-2025:10353 No score
Moderate: socat security update
The socat utility establishes bi-directional byte streams and transfers data between them. The utility can establish streams between a large set of channels, such as files, pipes, devices, and sockets.
Security Fix(es):
- socat: arbitrary file overwrite via predictable /tmp directory (CVE-2024-54661)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2025:10353- Updated
- 2026-11-02
OSVALSA-2025:11042 No score
Moderate: socat security update
The socat utility establishes bi-directional byte streams and transfers data between them. The utility can establish streams between a large set of channels, such as files, pipes, devices, and sockets.
Security Fix(es):
- socat: arbitrary file overwrite via predictable /tmp directory (CVE-2024-54661)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2025:11042- Updated
- 2026-11-02
OSVAZL-53960 No score
CVE-2024-54661 affecting package socat for versions less than 1.7.4.4-2
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
AZL-53960- Updated
- 2026-11-02
OSVAZL-53978 No score
CVE-2024-54661 affecting package socat for versions less than 1.7.4.3-2
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
AZL-53978- Updated
- 2026-11-02
OSVCLSA-2026-1782140243 No score
socat: Fix of CVE-2024-54661
- CVE-2024-54661: fix arbitrary file overwrite in readline.sh
- Record
CLSA-2026-1782140243- Updated
- 2026-11-02
OSV No score
readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- Record
CVE-2024-54661- Updated
- 2026-11-02
OSVMGASA-2024-0390 No score
Updated socat packages fix security vulnerability
CVE-2024-54661: Fixed arbitrary file overwrite via predictable /tmp directory in socat readline.sh
- Record
MGASA-2024-0390- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14582-1 No score
socat-1.8.0.2-1.1 on GA media
These are all security issues fixed in the socat-1.8.0.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14582-1- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-318-CVE-2024-54661 No score
CVE-2024-54661 in rootio-socat - Patched by Root
Root has patched CVE-2024-54661 in the rootio-socat package for Root:Alpine:3.18. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-318-CVE-2024-54661- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-319-CVE-2024-54661 No score
CVE-2024-54661 in rootio-socat - Patched by Root
Root has patched CVE-2024-54661 in the rootio-socat package for Root:Alpine:3.19. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-319-CVE-2024-54661- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-320-CVE-2024-54661 No score
CVE-2024-54661 in rootio-socat - Patched by Root
Root has patched CVE-2024-54661 in the rootio-socat package for Root:Alpine:3.20. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-320-CVE-2024-54661- Updated
- 2026-11-02
OSVSUSE-SU-2024:4294-1 No score
Security update for socat
This update for socat fixes the following issues:
- CVE-2024-54661: Fixed arbitrary file overwrite via predictable /tmp directory (bsc#1225462)
- Record
SUSE-SU-2024:4294-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:4295-1 No score
Security update for socat
This update for socat fixes the following issues:
- CVE-2024-54661: Fixed arbitrary file overwrite via predictable /tmp directory in socat readline.sh (bsc#1225462)
- Record
SUSE-SU-2024:4295-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:4302-1 No score
Security update for socat
This update for socat fixes the following issues:
- CVE-2024-54661: Fixed arbitrary file overwrite via predictable /tmp directory (bsc#1225462)
- Record
SUSE-SU-2024:4302-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:4348-1 No score
Security update for socat
This update for socat fixes the following issues:
- CVE-2024-54661: Fixed arbitrary file overwrite via predictable /tmp directory (bsc#1225462)
- Record
SUSE-SU-2024:4348-1- Updated
- 2026-11-02
OSVUSN-8511-1 No score
socat vulnerabilities
It was discovered that socat incorrectly handled the SOCKS5 proxy server reply parser. A remote attacker could possibly use this issue to execute arbitrary code. (CVE-2026-56123)
It was discovered that socat incorrectly handled a sample script. A local attacker could possibly use this issue to overwrite arbitrary files. This issue only affected Ubuntu 24.04 LTS. (CVE-2024-54661)
- Record
USN-8511-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
socatAlmaLinux:9 |
before 1.7.4.1-6.el9_6.1 | 1.7.4.1-6.el9_6.1 |
socatAlmaLinux:8 |
before 1.7.4.1-2.el8_10 | 1.7.4.1-2.el8_10 |
socatAzure Linux:3 |
before 1.7.4.4-2 | 1.7.4.4-2 |
socatAzure Linux:2 |
before 1.7.4.3-2 | 1.7.4.3-2 |
socatAlpaquita:23 |
1.7.4.4-r0 and later | None known |
socatAlpaquita:stream |
1.8.0.0-r0 up to 1.8.0.2-r0 | 1.8.0.2-r0 |
socatTuxCare:AlmaLinux:9.2 |
before 1.7.4.1-5.el9.tuxcare.els1 | 1.7.4.1-5.el9.tuxcare.els1 |
socatDebian:12 |
All versions, plus listed versions 1.7.4.4-21.7.4.4-2+hurd.11.8.0.0-11.8.0.0-21.8.0.0-3 Show 17 moreShow less1.8.0.0-41.8.0.0-4~bpo12+11.8.0.1-11.8.0.1-21.8.0.2-11.8.0.3-11.8.1.0-11.8.1.0-21.8.1.1-11.8.1.1-21.8.1.3-11.8.1.3-22.0.0~beta3-12.0.0~beta3-22.0.0~beta4-12.0.0~beta4-1.12.0.0~beta9-1 |
None known |
socatDebian:13 |
before 1.8.0.2-1 | 1.8.0.2-1 |
socatDebian:14 |
before 1.8.0.2-1 | 1.8.0.2-1 |
Show 41 moreShow less
| Package | Affected | Fixed |
|---|---|---|
socatMageia:9 |
before 1.8.0.2-1.mga9 | 1.8.0.2-1.mga9 |
socatopenEuler:24.03-LTS |
before 1.8.0.0-3.oe2403 | 1.8.0.0-3.oe2403 |
socatopenEuler:22.03-LTS-SP4 |
before 1.7.3.2-9.oe2203sp4 | 1.7.3.2-9.oe2203sp4 |
socatopenEuler:22.03-LTS-SP3 |
before 1.7.3.2-9.oe2203sp3 | 1.7.3.2-9.oe2203sp3 |
socatopenEuler:20.03-LTS-SP4 |
before 1.7.3.2-9.oe2003sp4 | 1.7.3.2-9.oe2003sp4 |
socatopenEuler:22.03-LTS-SP1 |
before 1.7.3.2-9.oe2203sp1 | 1.7.3.2-9.oe2203sp1 |
socatRed Hat:enterprise_linux:9::appstream |
before 0:1.7.4.1-6.el9_6.1 | 0:1.7.4.1-6.el9_6.1 |
socat-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:1.7.4.1-6.el9_6.1 | 0:1.7.4.1-6.el9_6.1 |
socat-debugsourceRed Hat:enterprise_linux:9::appstream |
before 0:1.7.4.1-6.el9_6.1 | 0:1.7.4.1-6.el9_6.1 |
socatRed Hat:rhel_e4s:9.2::appstream |
before 0:1.7.4.1-5.el9_2.2 | 0:1.7.4.1-5.el9_2.2 |
socat-debuginfoRed Hat:rhel_e4s:9.2::appstream |
before 0:1.7.4.1-5.el9_2.2 | 0:1.7.4.1-5.el9_2.2 |
socat-debugsourceRed Hat:rhel_e4s:9.2::appstream |
before 0:1.7.4.1-5.el9_2.2 | 0:1.7.4.1-5.el9_2.2 |
socatRed Hat:rhel_eus:9.4::appstream |
before 0:1.7.4.1-5.el9_4.3 | 0:1.7.4.1-5.el9_4.3 |
socat-debuginfoRed Hat:rhel_eus:9.4::appstream |
before 0:1.7.4.1-5.el9_4.3 | 0:1.7.4.1-5.el9_4.3 |
socat-debugsourceRed Hat:rhel_eus:9.4::appstream |
before 0:1.7.4.1-5.el9_4.3 | 0:1.7.4.1-5.el9_4.3 |
socatRed Hat:enterprise_linux:8::appstream |
before 0:1.7.4.1-2.el8_10 | 0:1.7.4.1-2.el8_10 |
socat-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:1.7.4.1-2.el8_10 | 0:1.7.4.1-2.el8_10 |
socat-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:1.7.4.1-2.el8_10 | 0:1.7.4.1-2.el8_10 |
socatRocky Linux:9 |
before 0:1.7.4.1-6.el9_6.1 | 0:1.7.4.1-6.el9_6.1 |
socatRocky Linux:8 |
before 0:1.7.4.1-2.el8_10 | 0:1.7.4.1-2.el8_10 |
rootio-socatRoot:Alpine:3.18 |
before 1.7.4.4-r10071 | 1.7.4.4-r10071 |
rootio-socatRoot:Alpine:3.19 |
before 1.8.0.0-r00071 | 1.8.0.0-r00071 |
rootio-socatRoot:Alpine:3.20 |
before 1.8.0.0-r00071 | 1.8.0.0-r00071 |
socatSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 |
before 1.7.2.4-4.3.1 | 1.7.2.4-4.3.1 |
socatSUSE:Linux Enterprise Module for Basesystem 15 SP6 |
before 1.8.0.0-150600.20.6.1 | 1.8.0.0-150600.20.6.1 |
socatopenSUSE:Leap 15.6 |
before 1.8.0.0-150600.20.6.1 | 1.8.0.0-150600.20.6.1 |
socatSUSE:Linux Enterprise Micro 5.3 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatSUSE:Linux Enterprise Micro 5.4 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatSUSE:Linux Enterprise Micro 5.5 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatSUSE:Linux Enterprise Module for Basesystem 15 SP5 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatopenSUSE:Leap Micro 5.5 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatopenSUSE:Leap 15.5 |
before 1.8.0.0-150400.14.6.1 | 1.8.0.0-150400.14.6.1 |
socatSUSE:Linux Enterprise Micro 5.2 |
before 1.7.3.2-150000.6.3.1 | 1.7.3.2-150000.6.3.1 |
socatUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.7.1.3-1.5ubuntu11.7.2.2-11.7.2.3-11.7.2.3-1ubuntu0.1~esm1 |
None known |
socatUbuntu:16.04:LTS |
All versions, plus listed versions 1.7.3.0-11.7.3.0-21.7.3.1-1 |
None known |
socatUbuntu:18.04:LTS |
All versions, plus listed versions 1.7.3.2-11.7.3.2-21.7.3.2-2build11.7.3.2-2ubuntu2 |
None known |
socatUbuntu:20.04:LTS |
All versions, plus listed versions 1.7.3.2-2ubuntu31.7.3.3-2 |
None known |
socatUbuntu:22.04:LTS |
All versions, plus listed versions 1.7.4.1-3ubuntu11.7.4.1-3ubuntu21.7.4.1-3ubuntu31.7.4.1-3ubuntu4 |
None known |
socatUbuntu:24.04:LTS |
before 1.8.0.0-4ubuntu0.1, plus listed versions 1.7.4.4-21.8.0.0-41.8.0.0-4build11.8.0.0-4build21.8.0.0-4build3 |
1.8.0.0-4ubuntu0.1 |
socatUbuntu:26.04:LTS |
before 1.8.1.1-1ubuntu0.1, plus listed versions 1.8.0.3-1build11.8.1.0-11.8.1.0-21.8.1.1-1 |
1.8.1.1-1ubuntu0.1 |
socatopenSUSE:Tumbleweed |
before 1.8.0.2-1.1 | 1.8.0.2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| aliases | ||
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-54661 is a critical vulnerability (CVSS 9.8) in Dest-unreach Socat, published December 4, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.80%, the 56th percentile. Fixed in socat 1.7.4.1-6.el9_6.1.
References
repo.or.cz/socat.git/blob/6ff391324d2d3b9f6bfb58e7d16a20be43b47af7:/readline.sh
dest-unreach.org/socat/contrib/socat-secadv9.html
nvd.nist.gov/vuln/detail/CVE-2024-54661
github.com/advisories/GHSA-x9w4-r3mh-39fw
security.alpinelinux.org/vuln/CVE-2024-54661
access.redhat.com/errata/RHSA-2025:10353
Show 34 moreShow less
access.redhat.com/security/cve/CVE-2024-54661
bugzilla.redhat.com/2330297
errata.almalinux.org/9/ALSA-2025-10353.html
access.redhat.com/errata/RHSA-2025:11042
errata.almalinux.org/8/ALSA-2025-11042.html
docs.bell-sw.com/security/cves/CVE-2024-54661
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1782140243.html
security-tracker.debian.org/tracker/CVE-2024-54661
advisories.mageia.org/MGASA-2024-0390.html
bugs.mageia.org/show_bug.cgi?id=33851
lists.suse.com/pipermail/sle-security-updates/2024-December/019988.html
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2580
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2330297
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_10353.json
cve.org/CVERecord?id=CVE-2024-54661
github.com/advisories/ghsa-x9w4-r3mh-39fw
access.redhat.com/errata/RHSA-2025:10544
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_10544.json
access.redhat.com/errata/RHSA-2025:10646
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_10646.json
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_11042.json
errata.rockylinux.org/RLSA-2025:10353
errata.rockylinux.org/RLSA-2025:11042
suse.com/support/update/announcement/2024/suse-su-20244294-1
bugzilla.suse.com/1225462
suse.com/security/cve/CVE-2024-54661
suse.com/support/update/announcement/2024/suse-su-20244295-1
suse.com/support/update/announcement/2024/suse-su-20244302-1
suse.com/support/update/announcement/2024/suse-su-20244348-1
ubuntu.com/security/CVE-2024-54661
ubuntu.com/security/notices/USN-8511-1
ubuntu.com/security/CVE-2026-56123
lists.opensuse.org/archives/list/[email protected]/thread/XWXJAVQD3HTBZI5EGK6RRHQ3EC55XXFL