Skip to main content
No exploitation reportedFix available

CVE-2024-25629

No exploitation reported by the sources we read.

  • Published2024-02-23
  • Fixed in1.27.0
  • WeaknessCWE-125 · CWE-127

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-02-2315:15CVE publishedNVD

Versions per branch

NVD
C-ares
BranchAffectedFixed in
1.27< 1.27.01.27.0
Fedoraproject fedora
BranchAffectedFixed in
38.x= 38no fix published
39.x= 39no fix published
40.x= 40no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • c-ares
    Affected
    • = < 1.27.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-04-19

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • c-aresWolfiall versions · fixed in 1.27.0-r0
  • c-aresUbuntu:Pro:18.04:LTSall versions · fixed in 1.14.0-1ubuntu0.2+esm2
  • c-aresUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.0-3ubuntu0.2+esm3
  • c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.3
  • c-aresUbuntu:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.5
  • c-aresTuxCare:AlmaLinux:9.2all versions · fixed in 1.17.1-5.el9_2.1.tuxcare.els3and 1 other package
  • c-aresSUSE:Linux Enterprise Server for SAP Applications 15 SP6all versions · fixed in 1.34.8-150000.3.29.1
  • c-aresSUSE:Linux Enterprise Server for SAP Applications 15 SP5all versions · fixed in 1.34.8-150000.3.29.1

132 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-25629 Red Hat Product Security278 products fixed · 26 known affected

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

    c-ares.src as a component of Red Hat Enterprise Linux 10 · c-ares-devel as a component of Red Hat Enterprise Linux 6 · c-ares.src as a component of Red Hat Enterprise Linux 6 · +23 more

  • RHSA-2024:4721 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs security update

  • RHSA-2024:4559 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs security update

  • RHSA-2024:4249 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2024:3842 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2024:2910 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs security update

4 more advisories

Full record on NVD

Fix

  1. Update C-ares to 1.27.0
  2. Vendor fix Red Hat Product Security RHSA-2024:4721 · 34 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:4249 · 21 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:3842 · 31 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2024:2853 · 31 productsFor details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Workaround from the vendor Red Hat Product Security RHSA-2024:4721 · 34 productsMitigation 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.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2024-02-23
  • CNACVSS 3.14.4known since 2026-10-23
  • NVDCVSS 3.15.5read 2026-10-23
  • CNAweakness (CWE)CWE-127known since 2026-10-23
  • NVDweakness (CWE)CWE-125read 2026-10-23
  • FIRST EPSSEPSS score0.4 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
2024-02-23
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2024-25629?

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.

Is CVE-2024-25629 actively exploited?

Active exploitation of CVE-2024-25629 has not been confirmed. Its EPSS score was 0.4% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-25629?

CVE-2024-25629 has a CVSS v3 base score of 5.5 (MEDIUM severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Running c-ares? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record