5.5

CVE-2024-25629: c-ares Buffer Under-read

CVSS: 5.5v3.1MediumAnalyzed
AliasesALPINE-CVE-2024-25629MGASA-2024-0051SUSE-SU-2024:1135-1
Published 23-02-2024Last modified 13-02-2025

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.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.35%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 8 · Related 3

Timeline

  1. 23-02-2024
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
0.35%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Chainguard1 product
  • c-ares< 1.27.0-r0
Debian1 product
  • c-aresAll versions (No fix recorded) | < 1.27.0-1
Fedoraproject1 product
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
Show all 26 references