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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2024-02-2315:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.27 | < 1.27.0 | 1.27.0 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 38.x | = 38 | no fix published | NVD |
| 39.x | = 39 | no fix published | NVD |
| 40.x | = 40 | no fix published | NVD |
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-aresAffected
- = < 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
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
Red Hat Security Advisory: nodejs security update
Red Hat Security Advisory: nodejs security update
Red Hat Security Advisory: c-ares security update
Red Hat Security Advisory: c-ares security update
Red Hat Security Advisory: nodejs security update
4 more advisories
Fix
- Update C-ares to 1.27.0
- 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
- 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
- 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
- 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
- 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
- github.comPatch
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- AZL-34453same flawAzure Linux · MIT
- AZL-34455same flawAzure Linux · MIT
- AZL-34456same flawAzure Linux · MIT
- AZL-34462same flawAzure Linux · MIT
- AZL-34463same flawAzure Linux · MIT
- AZL-34578same flawAzure Linux · MIT
- AZL-34687same flawAzure Linux · MIT
- AZL-35048same flawAzure Linux · MIT
- AZL-35132same flawAzure Linux · MIT
- AZL-38126same flawAzure Linux · MIT
- AZL-43501same flawAzure Linux · MIT
- CGA-395p-c744-3q3msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3qjx-p2c2-m6hqsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-22949same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- ALSA-2024:2778advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:2779advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:2780advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:2853advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:2910advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:3842advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:4249advisory covering several CVEsAlmaLinux · MIT
- MGASA-2024-0051advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-2019advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2020advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-2021advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13722-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2024:2778advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2779advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2780advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2853advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2910advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:3842advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4249advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4559advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:4721advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:2778advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:2779advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:2780advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:2853advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:2910advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:3842advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2024:4249advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2024:1135-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:1136-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:1136-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:4021-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6676-1advisory covering several CVEsUbuntu
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?
Is CVE-2024-25629 actively exploited?
What is the CVSS score for CVE-2024-25629?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0