{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-54661 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-54661 is a critical path traversal vulnerability in dest-unreach socat, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-54661 and fix it if it is affected.\n\nWhat it is: CVE-2024-54661 is a critical path traversal vulnerability in dest-unreach socat, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-54661 in the wild and no public exploit code.\n\nAffected product: dest-unreach socat. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-54661/ (Markdown: https://insights.sbomify.com/CVE-2024-54661/index.md)","id":"CVE-2024-54661","markdown":"https://insights.sbomify.com/CVE-2024-54661/index.md","name":"CVE-2024-54661","record":{"aliases":["ALSA-2025:10353","ALSA-2025:11042","AZL-53960","AZL-53978","BELL-CVE-2024-54661","CLSA-2026-1782140243","DEBIAN-CVE-2024-54661","GHSA-x9w4-r3mh-39fw","MGASA-2024-0390","OESA-2024-2580","RHSA-2025:10353","RHSA-2025:10544","RHSA-2025:10646","RHSA-2025:11042","RLSA-2025:10353","RLSA-2025:11042","ROOT-OS-ALPINE-318-CVE-2024-54661","ROOT-OS-ALPINE-319-CVE-2024-54661","ROOT-OS-ALPINE-320-CVE-2024-54661","SUSE-SU-2024:4294-1","SUSE-SU-2024:4295-1","SUSE-SU-2024:4302-1","SUSE-SU-2024:4348-1","UBUNTU-CVE-2024-54661","openSUSE-SU-2024:14582-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"socat utility","requires_auth":"none","summary":"An attacker can exploit insecure temporary file handling in socat to execute arbitrary code or escalate privileges.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"description":"readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in socat","id":"CVE-2024-54661","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":27,"n_references":2,"next":{"headline":"Missing authorization in n/a","id":"CVE-2024-54662"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.7.4.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/almalinux/socat","source":"ALSA-2025:11042"},{"ecosystem":"AlmaLinux:9","fixed":["1.7.4.1-6.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/almalinux/socat","source":"ALSA-2025:10353"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.7.4.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/redhat/socat","source":"RHSA-2025:11042"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.7.4.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"socat-debuginfo","purl":"pkg:rpm/redhat/socat-debuginfo","source":"RHSA-2025:11042"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.7.4.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"socat-debugsource","purl":"pkg:rpm/redhat/socat-debugsource","source":"RHSA-2025:11042"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.4.1-6.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/redhat/socat","source":"RHSA-2025:10353"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.4.1-6.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"socat-debuginfo","purl":"pkg:rpm/redhat/socat-debuginfo","source":"RHSA-2025:10353"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.7.4.1-6.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"socat-debugsource","purl":"pkg:rpm/redhat/socat-debugsource","source":"RHSA-2025:10353"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:1.7.4.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/redhat/socat","source":"RHSA-2025:10544"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:1.7.4.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"socat-debuginfo","purl":"pkg:rpm/redhat/socat-debuginfo","source":"RHSA-2025:10544"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:1.7.4.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"socat-debugsource","purl":"pkg:rpm/redhat/socat-debugsource","source":"RHSA-2025:10544"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.7.4.1-5.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/redhat/socat","source":"RHSA-2025:10646"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.7.4.1-5.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"socat-debuginfo","purl":"pkg:rpm/redhat/socat-debuginfo","source":"RHSA-2025:10646"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.7.4.1-5.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"socat-debugsource","purl":"pkg:rpm/redhat/socat-debugsource","source":"RHSA-2025:10646"},{"ecosystem":"Rocky Linux:8","fixed":["0:1.7.4.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/rocky-linux/socat?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2025:11042"},{"ecosystem":"Rocky Linux:9","fixed":["0:1.7.4.1-6.el9_6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/rocky-linux/socat?distro=rocky-linux-9-6\u0026epoch=0","source":"RLSA-2025:10353"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.7.3.2-150000.6.3.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2024:4348-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.8.0.0-150600.20.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:4295-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["1.7.2.4-4.3.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/suse/socat\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2024:4294-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/opensuse/socat\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.8.0.0-150600.20.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/opensuse/socat\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4295-1"},{"ecosystem":"openSUSE:Leap Micro 5.5","fixed":["1.8.0.0-150400.14.6.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/opensuse/socat\u0026distro=openSUSE%20Leap%20Micro%205.5","source":"SUSE-SU-2024:4302-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.8.0.2-1.1"],"introduced":["0"],"last_affected":[],"package":"socat","purl":"pkg:rpm/opensuse/socat\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14582-1"}],"prev":{"headline":"Code injection in n/a","id":"CVE-2024-54660"},"products":["socat"],"published":"2024-12-04","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-09","vendors":["dest-unreach"]},"summary":"An attacker can exploit insecure temporary file handling in socat to execute arbitrary code or escalate privileges.","url":"https://insights.sbomify.com/CVE-2024-54661/"}