CVE-2024-25629

c-ares out of bounds read in ares__read_line()

Published Feb 23, 2024 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-22949 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.
Ubuntu USN Ubuntu USN USN-6676-1 c-ares vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00035}

epss

{'score': 0.00036}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared C-ares
C-ares c-ares
Fedoraproject
Fedoraproject fedora
Weaknesses CWE-125
CPEs cpe:2.3:a:c-ares:c-ares:*:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
Vendors & Products C-ares
C-ares c-ares
Fedoraproject
Fedoraproject fedora
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 5:40 PM
Reserved
Feb 8, 2024, 10:26 PM
Status
Analyzed
Published
Feb 23, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:16 AM
Severity
Low
Public date
Feb 23, 2024, 12:00 AM