Skip to content
Fencer Vulns
medium 4.4

CVE-2024-25629 json

c-ares out of bounds read in ares__read_line()

published 2024-02-23 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-22949

cvss
4.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 29%
public exploits
0
none known

Summary

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.

Patch / fix

  • c-ares c-ares 1.27.0
  • c-ares_project c-ares 1.27.0
  • c-ares Debian 14, Debian 13 1.27.0-1

debian advisories DEBIAN-CVE-2024-25629

  • c-ares Ubuntu 20.04 LTS 1.15.0-1ubuntu0.5
  • c-ares Ubuntu 22.04 LTS 1.18.1-1ubuntu0.22.04.3
  • c-ares Ubuntu Pro 16.04 LTS 1.10.0-3ubuntu0.2+esm3
  • c-ares Ubuntu Pro 18.04 LTS 1.14.0-1ubuntu0.2+esm2

ubuntu advisories UBUNTU-CVE-2024-25629

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nodejs RHEL 9 1:16.20.2-8.el9_4
  • npm RHEL 9 1:8.19.4-1.16.20.2.8.el9_4
  • nodejs-libs RHEL 9 1:16.20.2-8.el9_4
  • nodejs-full-i18n RHEL 9 1:16.20.2-8.el9_4
  • npm RHEL 9 1:10.5.0-1.20.12.2.2.module+el9.4.0+21731+46b5b8a7
  • nodejs RHEL 9 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
  • nodejs-nodemon RHEL 9 3.0.1-1.module+el9.3.0.z+20478+84a9f781
  • nodejs-full-i18n RHEL 9 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7

red hat advisories RHSA-2024:4721RHSA-2024:4559RHSA-2024:2910RHSA-2024:2853RHSA-2024:2780RHSA-2024:2778

  • c-ares SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +11 more 1.34.8-150000.3.29.1
  • c-ares SLE Module for Basesystem 15 SP5, SLE Micro 5.5, SLE Micro 5.4 +6 more 1.19.1-150000.3.26.1
  • libcares2 SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +1 more 1.9.1-9.21.1

suse advisories SUSE-SU-2026:4021-1SUSE-SU-2024:1136-2SUSE-SU-2024:1136-1SUSE-SU-2024:1135-1

  • c-ares openSUSE Tumbleweed 1.27.0-1.1

opensuse advisories openSUSE-SU-2024:13722-1

  • c-ares AlmaLinux 8 1.13.0-11.el8_10
  • c-ares AlmaLinux 9 1.19.1-2.el9_4
  • nodejs AlmaLinux 9 1:16.20.2-8.el9_4
  • npm AlmaLinux 9 1:8.19.4-1.16.20.2.8.el9_4
  • nodejs-libs AlmaLinux 9 1:16.20.2-8.el9_4
  • nodejs-full-i18n AlmaLinux 9 1:16.20.2-8.el9_4
  • npm AlmaLinux 9 1:10.5.0-1.20.12.2.2.module_el9.4.0+100+71fc9528
  • nodejs AlmaLinux 9 1:20.12.2-2.module_el9.4.0+100+71fc9528

almalinux advisories ALSA-2024:4249ALSA-2024:3842ALSA-2024:2910ALSA-2024:2853ALSA-2024:2778ALSA-2024:2779

  • c-ares Rocky Linux 9 1.19.1-2.el9_4
  • c-ares Rocky Linux 8 1.13.0-11.el8_10
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.5.0+31770+0da7192d
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32322+a8b1fd01
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32045+2e5d342d
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32143+ae966e5b
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32144+1d29a396
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32185+bd121a25

rocky linux advisories RLSA-2024:3842RLSA-2024:4249RLSA-2024:2853RLSA-2024:2910RLSA-2024:2779RLSA-2024:2778

  • c-ares Alpine 3.18, Alpine 3.17, Alpine 3.16 1.19.1-r1
  • c-ares Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 1.27.0-r0

alpine advisories ALPINE-CVE-2024-25629

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • c-ares CBL-Mariner 2.0 1.19.1-2
  • fluent-bit CBL-Mariner 2.0 2.2.3-1
  • grpc CBL-Mariner 2.0 1.42.0-9
  • nodejs18 CBL-Mariner 2.0 18.20.2-1
  • python-gevent CBL-Mariner 2.0 21.1.2-3
  • c-ares Azure Linux 3.0 1.30.0-1
  • fluent-bit Azure Linux 3.0 3.0.6-1
  • nodejs Azure Linux 3.0 20.14.0-1

azure linux advisories AZL-34453AZL-34455AZL-34456AZL-34462AZL-34463AZL-34578

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-25629 updated cvss 4.4

c-ares: Out of bounds read in ares__read_line()

  • Red Hat Enterprise Linux 6 c-ares Red Hat Enterprise Linux 7 c-ares
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux 10 c-ares
    affected: workaround, no fix available
  • Red Hat Software Collections rh-nodejs14-npm, rh-nodejs14-nodejs, rh-nodejs14-nodejs-full-i18n
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 18.20.2-1.module+el8.9.0+21767+537f34ee, nodejs 20.12.2-2.module+el8.9.0+21743+0b3f1be2, nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824, nodejs-nodemon 3.0.1-1.module+el8.9.0+21190+5ebd2c33, npm 10.5.0-1.18.20.2.1.module+el8.9.0+21767+537f34ee, npm 10.5.0-1.20.12.2.2.module+el8.9.0+21743+0b3f1be2, +6 more
    fixed: vendor fix RHSA-2024:2780
  • Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.20.2-8.el9_4, nodejs-libs 16.20.2-8.el9_4, npm 8.19.4-1.16.20.2.8.el9_4, nodejs-full-i18n 16.20.2-8.el9_4, nodejs 18.20.2-2.module+el9.4.0+21742+692df1ea, nodejs 20.12.2-2.module+el9.4.0+21731+46b5b8a7, +10 more
    fixed: vendor fix RHSA-2024:3842
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) nodejs 16.20.2-9.el9_0, nodejs-libs 16.20.2-9.el9_0, npm 8.19.4-1.16.20.2.9.el9_0, nodejs-full-i18n 16.20.2-9.el9_0
    fixed: vendor fix RHSA-2024:4721
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) nodejs 16.20.2-6.el9_2.3, nodejs-libs 16.20.2-6.el9_2.3, npm 8.19.4-1.16.20.2.6.el9_2.3, nodejs-full-i18n 16.20.2-6.el9_2.3
    fixed: vendor fix RHSA-2024:4559
show 3 more
  • Red Hat Enterprise Linux BaseOS (v. 8) c-ares 1.13.0-11.el8_10
    fixed: vendor fix RHSA-2024:4249
  • Red Hat Enterprise Linux BaseOS (v. 9) c-ares 1.19.1-2.el9_4
    fixed: vendor fix RHSA-2024:3842
  • Red Hat Enterprise Linux 10 nodejs20
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.4 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • c-ares c-ares

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.