CVE-2024-25629: c-ares Buffer Under-read
Vulnerability summary
CVE-2024-25629 is a medium (CVSS 5.5) Buffer Under-read vulnerability in c-ares. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 27.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 8 · Related 3Timeline
- 23-02-2024PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- CVE.orgCNA4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · Red hatEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
27%
Versus all other CVEs
30-day change
0.00 pp
From 0.35% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Suse10 products
- c-ares&distro=SUSE Linux Enterprise Micro 5.1< 1.19.1-150000.3.26.1
- c-ares&distro=SUSE Linux Enterprise Micro 5.2< 1.19.1-150000.3.26.1
- c-ares&distro=SUSE Linux Enterprise Micro 5.3< 1.19.1-150000.3.26.1
- c-ares&distro=SUSE Linux Enterprise Micro 5.4< 1.19.1-150000.3.26.1
- c-ares&distro=SUSE Linux Enterprise Micro 5.5< 1.19.1-150000.3.26.1
Opensuse4 products
- c-ares&distro=openSUSE Leap 15.5< 1.19.1-150000.3.26.1
- c-ares&distro=openSUSE Leap Micro 5.3< 1.19.1-150000.3.26.1
- c-ares&distro=openSUSE Leap Micro 5.4< 1.19.1-150000.3.26.1
- c-ares&distro=openSUSE Tumbleweed< 1.27.0-1.1
Redhat4 products
- c-ares< 0:1.19.1-2.el9_4 | < 0:1.13.0-11.el8_10
- c-ares-debuginfo< 0:1.19.1-2.el9_4 | < 0:1.13.0-11.el8_10
- c-ares-debugsource< 0:1.19.1-2.el9_4 | < 0:1.13.0-11.el8_10
- c-ares-devel< 0:1.19.1-2.el9_4 | < 0:1.13.0-11.el8_10
Alpine1 product
- c-ares< 1.19.1-r1 | < 1.27.0-r0
C-ares1 product
- c-ares< 1.27.0
Chainguard1 product
- c-ares< 1.27.0-r0
Debian1 product
- c-aresAll versions (No fix recorded) | < 1.27.0-1
Fedoraproject1 product
- fedoraEOL38 | 39 | 40
Mageia1 product
- c-ares< 1.19.1-1.1.mga9
Ubuntu1 product
- c-ares< 1.10.0-3ubuntu0.2+esm3 | < 1.14.0-1ubuntu0.2+esm2 | < 1.15.0-1ubuntu0.5 | < 1.18.1-1ubuntu0.22.04.3
Wolfi1 product
- c-ares< 1.27.0-r0
11 vendors · 26 products
References
26 links- github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48qX Refsource CONFIRMARTICLEREPORTAdvisoryVendor Advisory