Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-54661: CWE-61 UNIX Symbolic Link (Symlink) Following in dest-unreach socat

0
Critical
VulnerabilityCVE-2024-54661cvecve-2024-54661cwe-61
Published: Wed Dec 04 2024 (12/04/2024, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: dest-unreach
Product: socat

Description

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 03:21:36 UTC

Technical Analysis

CVE-2024-54661 is a critical security vulnerability affecting the socat utility, specifically versions 1.6.0.0 and 2.0.0-b1, prior to the patched version 1.8.0.2. The vulnerability is categorized under CWE-61, which involves unsafe symbolic link following. The root cause is that socat's readline.sh script relies on a temporary file located at /tmp/$USER/stderr2. Because /tmp is a world-writable directory and the filename is predictable, an attacker can create a malicious symbolic link pointing this file to an arbitrary location. When socat writes to or reads from this file, it may inadvertently overwrite or disclose sensitive files or execute unintended commands. This symlink race condition can be exploited remotely without authentication or user interaction, leading to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS v3.1 base score of 9.8 reflects the critical nature of this flaw, with network attack vector, low attack complexity, no privileges required, and no user interaction needed. The vulnerability affects the dest-unreach project within socat, a widely used multipurpose relay tool for bidirectional data transfer. Although no exploits have been observed in the wild yet, the ease of exploitation and high impact make this a severe threat. The lack of an official patch link suggests that users must monitor vendor advisories closely and apply updates once available or implement workarounds to mitigate risk.

Potential Impact

The impact of CVE-2024-54661 is severe for organizations worldwide that use socat, especially in environments where socat is deployed for network relaying, proxying, or security monitoring. Successful exploitation can lead to arbitrary code execution, allowing attackers to gain unauthorized access, escalate privileges, or disrupt services. Confidential data may be exposed or altered, and system availability can be compromised through denial-of-service conditions. Because socat is commonly used in Unix/Linux systems, embedded devices, and network appliances, the vulnerability could affect a broad range of sectors including telecommunications, cloud service providers, critical infrastructure, and enterprise IT environments. The ease of exploitation without authentication or user interaction increases the risk of automated attacks and worm propagation. Organizations relying on socat for secure communications or firewall traversal may face significant operational and reputational damage if exploited.

Mitigation Recommendations

To mitigate CVE-2024-54661, organizations should immediately identify all socat instances running vulnerable versions (1.6.0.0 and 2.0.0-b1) and plan for prompt upgrades to version 1.8.0.2 or later once available. In the absence of an official patch, administrators should restrict write permissions to /tmp directories to prevent unauthorized symlink creation, for example by mounting /tmp with the 'noexec' and 'nosuid' options and using the 'sticky bit' to limit file deletion. Employing mandatory access control (MAC) frameworks like SELinux or AppArmor can help contain socat's file system interactions. Monitoring for unusual file system activity involving /tmp/$USER/stderr2 and related files can provide early detection of exploitation attempts. Network-level controls should limit exposure of socat services to trusted hosts only. Additionally, consider running socat under a dedicated, low-privilege user account to minimize impact if compromised. Regularly review vendor advisories for patches and apply them promptly. Finally, conduct security audits and penetration tests focusing on symlink vulnerabilities in temporary file handling.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-12-04T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6bc4b7ef31ef0b55acb4

Added to database: 2/25/2026, 9:38:12 PM

Last enriched: 2/28/2026, 3:21:36 AM

Last updated: 4/12/2026, 1:13:12 AM

Views: 21

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses