cve.bz

CVE-2024-25629 Out-of-bounds Read

5.5 mediumEPSS 0.4%Fix available

Medium (5.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-02-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-127 Buffer Under-read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-25629 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-25629?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-25629?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-25629 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
c-ares:c-aresbefore 1.27.0
fedoraproject:fedora38
fedoraproject:fedora39
fedoraproject:fedora40

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12c-aresno fix listedDEBIAN-CVE-2024-25629
Debian13, 14c-ares1.27.0-1DEBIAN-CVE-2024-25629
Ubuntu20.04:LTSc-ares1.15.0-1ubuntu0.5UBUNTU-CVE-2024-25629 USN-6676-1
Ubuntu22.04:LTSc-ares1.18.1-1ubuntu0.22.04.3UBUNTU-CVE-2024-25629 USN-6676-1
UbuntuPro:16.04:LTSc-ares1.10.0-3ubuntu0.2+esm3UBUNTU-CVE-2024-25629 USN-6676-1
UbuntuPro:18.04:LTSc-ares1.14.0-1ubuntu0.2+esm2UBUNTU-CVE-2024-25629 USN-6676-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.20.2-1.module+el8.9.0+21767+537f34eeRHSA-2024:2780
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:20.12.2-2.module+el8.9.0+21743+0b3f1be2RHSA-2024:2778
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.9.0+20473+c4e3d824RHSA-2024:2778
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.9.0+21190+5ebd2c33RHSA-2024:2780
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2024:2778
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.9.0+21190+5ebd2c33RHSA-2024:2780
Red Hatenterprise_linux:8::appstreamnpm1:10.5.0-1.18.20.2.1.module+el8.9.0+21767+537f34eeRHSA-2024:2780
Red Hatenterprise_linux:8::appstreamnpm1:10.5.0-1.20.12.2.2.module+el8.9.0+21743+0b3f1be2RHSA-2024:2778
Red Hatenterprise_linux:8::baseosc-ares, c-ares-devel, c-ares-debuginfo and 1 more0:1.13.0-11.el8_10RHSA-2024:4249
Red Hatenterprise_linux:9::appstreamc-ares-devel, c-ares-debuginfo, c-ares-debugsource0:1.19.1-2.el9_4RHSA-2024:3842
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.20.2-2.module+el9.4.0+21742+692df1eaRHSA-2024:2779
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:20.12.2-2.module+el9.4.0+21731+46b5b8a7RHSA-2024:2853
13 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morec-ares1.34.8-150000.3.29.1SUSE-SU-2026:4021-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 3 morec-ares1.19.1-150000.3.26.1SUSE-SU-2024:1136-1
SUSELinux Enterprise Micro 5.5c-ares1.19.1-150000.3.26.1SUSE-SU-2024:1136-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 morelibcares21.9.1-9.21.1SUSE-SU-2024:1135-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4c-ares1.19.1-150000.3.26.1SUSE-SU-2024:1136-1
openSUSETumbleweedc-ares1.27.0-1.1openSUSE-SU-2024:13722-1
AlmaLinux8c-ares, c-ares-devel1.13.0-11.el8_10ALSA-2024:4249
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.2-1.module_el8.9.0+3828+c9fa9644ALSA-2024:2780
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:20.12.2-2.module_el8.9.0+3827+11b91f3eALSA-2024:2778
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2024:2780
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:2778
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:2780
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.9.0+3684+11b9e959ALSA-2024:2778
AlmaLinux8npm1:10.5.0-1.18.20.2.1.module_el8.9.0+3828+c9fa9644ALSA-2024:2780
AlmaLinux8npm1:10.5.0-1.20.12.2.2.module_el8.9.0+3827+11b91f3eALSA-2024:2778
AlmaLinux9c-ares, c-ares-devel1.19.1-2.el9_4ALSA-2024:3842
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.2-2.module_el9.4.0+99+a01f7676ALSA-2024:2779
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:20.12.2-2.module_el9.4.0+100+71fc9528ALSA-2024:2853
8 more for AlmaLinux in the JSON.
Rocky Linux8c-ares0:1.13.0-11.el8_10RLSA-2024:4249
Rocky Linux8nodejs1:18.20.2-1.module+el8.9.0+1803+9ac8b495RLSA-2024:2780
Rocky Linux8nodejs1:20.12.2-2.module+el8.9.0+1804+2708cc21RLSA-2024:2778
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2024:2778 RLSA-2024:2780
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2024:2778 RLSA-2024:2780
Rocky Linux9c-ares0:1.19.1-2.el9_4RLSA-2024:3842
Rocky Linux9nodejs1:16.20.2-8.el9_4RLSA-2024:2910
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2024:2779 RLSA-2024:2853
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:2779 RLSA-2024:2853
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:2779 RLSA-2024:2853
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2024:2779 RLSA-2024:2853
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:2779 RLSA-2024:2853
8 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17, v3.18c-ares1.19.1-r1ALPINE-CVE-2024-25629
Alpinev3.19, v3.20, v3.21 and 3 morec-ares1.27.0-r0ALPINE-CVE-2024-25629
Azure Linux2c-ares1.19.1-2AZL-34453
Azure Linux2fluent-bit2.2.3-1AZL-34455
Azure Linux2grpc1.42.0-9AZL-34456
Azure Linux2nodejs1818.20.2-1AZL-34462
Azure Linux2python-gevent21.1.2-3AZL-34463
Azure Linux2python-pycaresno fix listedAZL-43501
Azure Linux3c-ares1.30.0-1AZL-34578
Azure Linux3ceph18.2.2-1AZL-38126
Azure Linux3fluent-bit3.0.6-1AZL-34687
Azure Linux3nodejs20.14.0-1AZL-35048
Azure Linux3python-gevent23.9.1-4AZL-35132
Alpaquita23c-ares1.19.1-r1BELL-CVE-2024-25629
Alpaquitastreamc-ares1.27.0-r0BELL-CVE-2024-25629
BellSoft Hardened Containersstreamc-ares1.27.0-r0BELL-CVE-2024-25629

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat considers this a Low impact since this issue requires a specific configuration file to be configured incorrectly, meaning an attacker would need access to this configuration file to impact the server. This would normally correspond to an already compromised environment.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:20-8090020240422150739.a75119d5Fixed 2024-05-09RHSA-2024:2778
Red Hat Enterprise Linux 8nodejs:18-8090020240429131734.a75119d5Fixed 2024-05-09RHSA-2024:2780
Red Hat Enterprise Linux 8c-ares-0:1.13.0-11.el8_10Fixed 2024-07-02RHSA-2024:4249
Red Hat Enterprise Linux 9nodejs:18-9040020240422140329.rhel9Fixed 2024-05-09RHSA-2024:2779
Red Hat Enterprise Linux 9nodejs:20-9040020240419140200.rhel9Fixed 2024-05-15RHSA-2024:2853
Red Hat Enterprise Linux 9nodejs-1:16.20.2-8.el9_4Fixed 2024-05-20RHSA-2024:2910
Red Hat Enterprise Linux 9c-ares-0:1.19.1-2.el9_4Fixed 2024-06-11RHSA-2024:3842
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsnodejs-1:16.20.2-9.el9_0Fixed 2024-07-23RHSA-2024:4721
Red Hat Enterprise Linux 9.2 Extended Update Supportnodejs-1:16.20.2-6.el9_2.3Fixed 2024-07-16RHSA-2024:4559
Red Hat Enterprise Linux 10c-aresAffected
Red Hat Enterprise Linux 10nodejs20Not affected
Red Hat Enterprise Linux 6c-aresOut of support scope
Red Hat Enterprise Linux 7c-aresOut of support scope
Red Hat Enterprise Linux 8nodejs:16/nodejsFix deferred
Red Hat Software Collectionsrh-nodejs14-nodejsFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-25629.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON