{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-25629 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-25629 is a medium-severity vulnerability in Fedoraproject Fedora, published on 23 Feb 2024."},"fix_prompt":"Check this codebase for CVE-2024-25629 and fix it if it is affected.\n\nWhat it is: CVE-2024-25629 is a medium-severity vulnerability in Fedoraproject Fedora, published on 23 Feb 2024. \nExploitation: There is no known exploitation of CVE-2024-25629 in the wild and no public exploit code.\n\nAffected product: Fedoraproject Fedora. 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-25629/ (Markdown: https://insights.sbomify.com/CVE-2024-25629/index.md)","id":"CVE-2024-25629","markdown":"https://insights.sbomify.com/CVE-2024-25629/index.md","name":"CVE-2024-25629","record":{"aliases":["ALPINE-CVE-2024-25629","ALSA-2024:3842","ALSA-2024:4249","AZL-34453","AZL-34455","AZL-34456","AZL-34462","AZL-34463","AZL-34578","AZL-34687","AZL-35048","AZL-35132","AZL-38126","AZL-43501","BELL-CVE-2024-25629","CLEANSTART-2025-FK62807","CLSA-2025-1756408700","DEBIAN-CVE-2024-25629","ECHO-b5d8-981b-c7e4","GHSA-mg26-v6qh-x48q","MGASA-2024-0051","OESA-2024-2019","OESA-2024-2020","OESA-2024-2021","RHSA-2024:3842","RHSA-2024:4249","RLSA-2024:3842","RLSA-2024:4249","ROOT-OS-DEBIAN-12-CVE-2024-25629","SUSE-SU-2024:1135-1","SUSE-SU-2024:1136-1","SUSE-SU-2024:1136-2","UBUNTU-CVE-2024-25629","USN-6676-1","openSUSE-SU-2024:13722-1"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"c-ares","vendor":"c-ares"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-127","name":"Buffer Under-read"}],"description":"c-ares is a C library for asynchronous DNS requests. `ares__read_line()` is used to parse local configuration files such as `/etc/resolv.conf`, `/etc/nsswitch.conf`, the `HOSTALIASES` file, and if using a c-ares version prior to 1.27.0, the `/etc/hosts` file. If any of these configuration files has an embedded `NULL` character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Micro 5.1","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 Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4","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":"c-ares out of bounds read in ares__read_line()","id":"CVE-2024-25629","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":null,"year":"2024"},"n_packages":31,"n_references":5,"next":{"headline":"Cilium has unencrypted ingress/health traffic when using Wireguard transparent encryption","id":"CVE-2024-25630"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/almalinux/c-ares","source":"ALSA-2024:4249"},{"ecosystem":"AlmaLinux:8","fixed":["1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/almalinux/c-ares-devel","source":"ALSA-2024:4249"},{"ecosystem":"AlmaLinux:9","fixed":["1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/almalinux/c-ares","source":"ALSA-2024:3842"},{"ecosystem":"AlmaLinux:9","fixed":["1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/almalinux/c-ares-devel","source":"ALSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2024:4249"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2024:4249"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2024:4249"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2024:4249"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2024:3842"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2024:3842"},{"ecosystem":"Rocky Linux:8","fixed":["0:1.13.0-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/rocky-linux/c-ares?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:4249"},{"ecosystem":"Rocky Linux:9","fixed":["0:1.19.1-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/rocky-linux/c-ares?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2024:3842"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1136-2"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["1.9.1-9.21.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2024:1135-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["1.9.1-9.21.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:1135-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["1.9.1-9.21.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2024:1135-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["1.9.1-9.21.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP5","source":"SUSE-SU-2024:1135-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/opensuse/c-ares\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"openSUSE:Leap Micro 5.3","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/opensuse/c-ares\u0026distro=openSUSE%20Leap%20Micro%205.3","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"openSUSE:Leap Micro 5.4","fixed":["1.19.1-150000.3.26.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/opensuse/c-ares\u0026distro=openSUSE%20Leap%20Micro%205.4","source":"SUSE-SU-2024:1136-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.27.0-1.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/opensuse/c-ares\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13722-1"}],"prev":{"headline":"Insufficient Session Expiration in alf.io","id":"CVE-2024-25628"},"products":["c-ares"],"published":"2024-02-23","related":[{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-5180","kev_date_added":null,"published":"2016-10-03"},{"cvss_score":7.5,"headline":"Information disclosure in n/a","id":"CVE-2017-1000381","kev_date_added":null,"published":"2017-07-07"},{"cvss_score":5.9,"headline":"c-ares has a Use After Free vulnerability when connection is cleaned up after error","id":"CVE-2025-62408","kev_date_added":null,"published":"2025-12-08"},{"cvss_score":5.9,"headline":"Memory corruption in n/a","id":"CVE-2020-22217","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":3.3,"headline":"Use after free in c-ares","id":"CVE-2020-14354","kev_date_added":null,"published":"2021-05-13"}],"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["c-ares"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-25629/"}