# CVE-2024-25629: c-ares out of bounds read in ares\_\_read\_line()

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-02-23 · Modified: 2025-02-13
- Aliases: ALPINE-CVE-2024-25629, MGASA-2024-0051, SUSE-SU-2024:1135-1, SUSE-SU-2024:1136-1, SUSE-SU-2024:1136-2, RHSA-2024:3842, RHSA-2024:4249, UBUNTU-CVE-2024-25629, USN-6676-1, DEBIAN-CVE-2024-25629, CGA-395p-c744-3q3m, CGA-3qjx-p2c2-m6hq, openSUSE-SU-2024:13722-1
- Record: https://cvemate.com/vulnerability/CVE-2024-25629 · JSON: https://cvemate.com/vulnerability/CVE-2024-25629/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.352%, percentile 30.789%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 26)

- alpine c-ares (Alpine Linux): \< 1.19.1-r1 \| \< 1.27.0-r0
- chainguard c-ares (Chainguard): \< 1.27.0-r0
- wolfi c-ares (Wolfi): \< 1.27.0-r0
- c-ares c-ares: \< 1.27.0
- debian c-ares (Debian): All versions (No fix recorded) \| \< 1.27.0-1
- ubuntu c-ares (Ubuntu): \< 1.10.0-3ubuntu0.2+esm3 \| \< 1.14.0-1ubuntu0.2+esm2 \| \< 1.15.0-1ubuntu0.5 \| \< 1.18.1-1ubuntu0.22.04.3
- fedoraproject fedora: 38 \| 39 \| 40
- mageia c-ares (Mageia): \< 1.19.1-1.1.mga9
- opensuse c-ares&distro=openSUSE Leap 15.5 (openSUSE): \< 1.19.1-150000.3.26.1
- opensuse c-ares&distro=openSUSE Leap Micro 5.3 (openSUSE): \< 1.19.1-150000.3.26.1
- opensuse c-ares&distro=openSUSE Leap Micro 5.4 (openSUSE): \< 1.19.1-150000.3.26.1
- opensuse c-ares&distro=openSUSE Tumbleweed (openSUSE): \< 1.27.0-1.1
- redhat c-ares (Red Hat): \< 0:1.19.1-2.el9\_4 \| \< 0:1.13.0-11.el8\_10
- redhat c-ares-debuginfo (Red Hat): \< 0:1.19.1-2.el9\_4 \| \< 0:1.13.0-11.el8\_10
- redhat c-ares-debugsource (Red Hat): \< 0:1.19.1-2.el9\_4 \| \< 0:1.13.0-11.el8\_10
- redhat c-ares-devel (Red Hat): \< 0:1.19.1-2.el9\_4 \| \< 0:1.13.0-11.el8\_10
- suse c-ares&distro=SUSE Linux Enterprise Micro 5.1 (SUSE Linux Enterprise): \< 1.19.1-150000.3.26.1
- suse c-ares&distro=SUSE Linux Enterprise Micro 5.2 (SUSE Linux Enterprise): \< 1.19.1-150000.3.26.1
- suse c-ares&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 1.19.1-150000.3.26.1
- suse c-ares&distro=SUSE Linux Enterprise Micro 5.4 (SUSE Linux Enterprise): \< 1.19.1-150000.3.26.1

## References (first 20 of 26)

- <https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q>
- <https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX37LFPFQ3T6FFMMFYQTEGIQXXN7F27U/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P76QYINQNPEHUTEEDOUYIRZ2X6UVZ5K/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CSCMTSPDIE2UHU34TIXQQHZ6JTE3Y3VF/>
- <https://security.alpinelinux.org/vuln/CVE-2024-25629>
- <https://advisories.mageia.org/MGASA-2024-0051.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32894>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20241135-1/>
- <https://bugzilla.suse.com/1220279>
- <https://www.suse.com/security/cve/CVE-2024-25629>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20241136-1/>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20241136-2/>
- <https://access.redhat.com/errata/RHSA-2024:3842>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2265713>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_3842.json>
- <https://access.redhat.com/security/cve/CVE-2024-25629>
- <https://www.cve.org/CVERecord?id=CVE-2024-25629>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25629>

---

Data as of 2026-12-05T09:39:14.939Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
