{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24806 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-24806 is a high-severity server-side request forgery vulnerability in libuv, published on 7 Feb 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-24806 and fix it if it is affected.\n\nWhat it is: CVE-2024-24806 is a high-severity server-side request forgery vulnerability in libuv, published on 7 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24806 exists.\n\nAffected product: libuv. 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-24806/ (Markdown: https://insights.sbomify.com/CVE-2024-24806/index.md)","id":"CVE-2024-24806","markdown":"https://insights.sbomify.com/CVE-2024-24806/index.md","name":"CVE-2024-24806","record":{"aliases":["ALPINE-CVE-2024-24806","ALSA-2024:4247","ALSA-2024:4756","AZL-34278","AZL-34306","AZL-34957","AZL-35051","AZL-35133","AZL-35782","BELL-CVE-2024-24806","CLSA-2025-1762363908","DEBIAN-CVE-2024-24806","DLA-3752-1","DSA-5638-1","ECHO-797c-51ce-00bf","GHSA-f74f-cvh7-c6q6","MGASA-2024-0079","OESA-2024-1200","RHSA-2024:4247","RHSA-2024:4756","RHSA-2024:8132","RLSA-2024:4247","RLSA-2024:4756","ROOT-OS-ALPINE-318-CVE-2024-24806","ROOT-OS-ALPINE-319-CVE-2024-24806","SUSE-SU-2024:4109-1","UBUNTU-CVE-2024-24806","USN-6666-1","openSUSE-SU-2024:13818-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"libuv async I/O library","requires_auth":"none","summary":"Attackers can exploit hostname truncation in libuv to bypass security checks and perform Server-Side Request Forgery attacks against internal services.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"libuv","vendor":"libuv"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"libuv is a multi-platform support library with a focus on asynchronous I/O. The `uv_getaddrinfo` function in `src/unix/getaddrinfo.c` (and its windows counterpart `src/win/getaddrinfo.c`), truncates hostnames to 256 characters before calling `getaddrinfo`. This behavior can be exploited to create addresses like `0x00007f000001`, which are considered valid by `getaddrinfo` and could allow an attacker to craft payloads that resolve to unintended IP addresses, bypassing developer checks. The vulnerability arises due to how the `hostname_ascii` variable (with a length of 256 bytes) is handled in `uv_getaddrinfo` and subsequently in `uv__idna_toascii`. When the hostname exceeds 256 characters, it gets truncated without a terminating null byte. As a result attackers may be able to access internal APIs or for websites (similar to MySpace) that allows users to have `username.example.com` pages. Internal services that crawl or cache these user pages can be exposed to SSRF attacks if a malicious user chooses a long vulnerable username. This issue has been addressed in release version 1.48.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:8.8::crb","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Improper Domain Lookup that potentially leads to SSRF attacks in libuv","id":"CVE-2024-24806","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":30,"n_references":11,"next":{"headline":"Sulu is vulnerable to HTML Injection via Autocomplete Suggestion","id":"CVE-2024-24807"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/almalinux/libuv","source":"ALSA-2024:4247"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/almalinux/libuv-devel","source":"ALSA-2024:4247"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/almalinux/libuv","source":"ALSA-2024:4756"},{"ecosystem":"AlmaLinux:9","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/almalinux/libuv-devel","source":"ALSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/redhat/libuv","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/redhat/libuv-devel","source":"RHSA-2024:4247"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/redhat/libuv","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/redhat/libuv-devel","source":"RHSA-2024:4756"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/redhat/libuv","source":"RHSA-2024:8132"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:8132"},{"ecosystem":"Red Hat:rhel_eus:8.8::appstream","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:8132"},{"ecosystem":"Red Hat:rhel_eus:8.8::crb","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2024:8132"},{"ecosystem":"Red Hat:rhel_eus:8.8::crb","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2024:8132"},{"ecosystem":"Red Hat:rhel_eus:8.8::crb","fixed":["1:1.41.1-1.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/redhat/libuv-devel","source":"RHSA-2024:8132"},{"ecosystem":"Rocky Linux:8","fixed":["1:1.41.1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/rocky-linux/libuv?distro=rocky-linux-8\u0026epoch=1","source":"RLSA-2024:4247"},{"ecosystem":"Rocky Linux:9","fixed":["1:1.42.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/rocky-linux/libuv?distro=rocky-linux-9\u0026epoch=1","source":"RLSA-2024:4756"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.44.2-150500.3.5.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/suse/libuv\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:4109-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["1.44.2-150500.3.5.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/suse/libuv\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:4109-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.44.2-150500.3.5.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/suse/libuv\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2024:4109-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.44.2-150500.3.5.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/opensuse/libuv\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:4109-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.44.2-150500.3.5.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/opensuse/libuv\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4109-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.48.0-1.1"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/opensuse/libuv\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13818-1"}],"prev":{"headline":"WordPress WP Dummy Content Generator plugin \u003c= 3.1.2 - Broken Access Control vulnerability","id":"CVE-2024-24805"},"products":["libuv"],"published":"2024-02-07","related":[{"cvss_score":8.1,"headline":"Race condition in n/a","id":"CVE-2014-9748","kev_date_added":null,"published":"2020-02-11"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-17","vendors":["libuv"]},"summary":"Attackers can exploit hostname truncation in libuv to bypass security checks and perform Server-Side Request Forgery attacks against internal services.","url":"https://insights.sbomify.com/CVE-2024-24806/"}