CVE-2024-8418: Aardvark dns Missing Connection Timeout Vulnerability

HIGH
Advisory Identifier: GHSA-g5jh-57wm-p79m
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-2024-8418 is a HIGH (CVSS 7.5) missing connection timeout vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Aardvark dns libraries in the crates.io ecosystem. The issue involves missing connection timeout in aardvark-dns. Remediation is available by upgrading affected packages to version 1.12.2.

CVE-2024-8418 at a Glance

CVE Identifier CVE-2024-8418
GHSA Identifier GHSA-g5jh-57wm-p79m
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Aardvark dns
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-8418

To remediate this vulnerability, upgrade all affected Aardvark dns dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aardvark-dns fixed: 1.12.2
Upgrade aardvark-dns to 1.12.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for aardvark-dns

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-8418, inspect your project dependencies for Aardvark dns:

inspect dependencies for aardvark-dns

Analyze the terminal output to locate any version of Aardvark dns in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Aardvark dns, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw was found in Aardvark-dns versions 1.12.0 and 1.12.1. They contain a denial of service vulnerability due to serial processing of TCP DNS queries. This flaw allows a malicious client to keep a TCP connection open indefinitely, causing other DNS queries to time out and resulting in a denial of service for all other containers using aardvark-dns.

CVE-2024-8418 Affected Aardvark dns Versions

1 component(s)
Fixed Versions:
1.12.2
Product / Package Ecosystem Affected Versions Fixed Version
aardvark-dns
crates.io
≥ 1.12.0
< 1.12.2
1.12.2

References

Frequently Asked Questions

What is CVE-2024-8418?
CVE-2024-8418 is a security vulnerability in Aardvark dns involving Missing connection timeout in Aardvark-dns under CWE-400: Uncontrolled Resource Consumption.
Which Aardvark dns versions are affected?
Affected versions include releases prior to 1.12.2 across affected packages: aardvark-dns.
What version fixes CVE-2024-8418?
Upgrading to 1.12.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aardvark-dns affected?
Yes, aardvark-dns is affected in releases prior to 1.12.2. Upgrade your dependency to 1.12.2 or later.
What is the CVSS score of CVE-2024-8418?
CVE-2024-8418 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-8418?
CVE-2024-8418 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for CVE-2024-8418?
Run the dependency tree command: 'inspect dependencies for aardvark-dns'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g5jh-57wm-p79m",
  "modified" : "2025-05-14T19:15:26Z",
  "published" : "2024-09-04T15:30:36Z",
  "aliases" : [ "CVE-2024-8418" ],
  "summary" : "Missing connection timeout in Aardvark-dns",
  "details" : "A flaw was found in Aardvark-dns versions 1.12.0 and 1.12.1. They contain a denial of service vulnerability due to serial processing of TCP DNS queries. This flaw allows a malicious client to keep a TCP connection open indefinitely, causing other DNS queries to time out and resulting in a denial of service for all other containers using aardvark-dns.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "aardvark-dns"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.0"
      }, {
        "fixed" : "1.12.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8418"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/aardvark-dns/issues/500"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/aardvark-dns/pull/503"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/aardvark-dns/commit/aa109bbd6743abd7027e589cc4b871dd2dce7d50"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:7094"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-8418"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2309683"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/containers/aardvark-dns"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-04T17:22:36Z",
    "nvd_published_at" : "2024-09-04T15:15:15Z"
  }
}