Insecure temporary file in socat - CVE-2024-54661

 

Insecure temporary file in socat - CVE-2024-54661

Published: December 16, 2024


Vulnerability identifier: #VU101797
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-54661
CWE-ID: CWE-377
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: www.dest-unreach.org
Affected software:
socat

Detailed vulnerability description

The vulnerability allows a local user to overwrite arbitrary files on the system.

The vulnerability exists due to usage of a predictable temporary file name in readline.sh. A local user can create a symbolic link from the temporary file to an arbitrary files on the system and overwrite it with the application's output, corrupting the file.


How to mitigate CVE-2024-54661

Install updates from vendor's website.

Sources