# CVE-2024-8418: Containers/aardvark-dns: tcp query handling flaw in aardvark-dns leading to denial of service

> An attacker can cause denial of service in Aardvark DNS by keeping TCP connections open, blocking legitimate DNS queries.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 4 Sep 2024
- **Updated:** 21 Oct 2026
- **Also known as:** ALSA-2025:7094, BELL-CVE-2024-8418, CLEANSTART-2025-BG45728, DEBIAN-CVE-2024-8418, GHSA-g5jh-57wm-p79m, RHSA-2025:7094, RLSA-2025:7094, openSUSE-SU-2024:14319-1

## What is CVE-2024-8418?

CVE-2024-8418 is a high-severity denial of service vulnerability in Red Hat Enterprise Linux 10, published on 4 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in Aardvark-dns, which is vulnerable to a Denial of Service attack due to the serial processing of TCP DNS queries. An attacker can exploit this flaw by keeping a TCP connection open indefinitely, causing the server to become unresponsive and resulting in other DNS queries timing out. This issue prevents legitimate users from accessing DNS services, thereby disrupting normal operations and causing service downtime.

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2024-8418?

2 open source packages ship an affected version, including aardvark-dns. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `aardvark-dns` | crates.io | From 1.12.0 | 1.12.2 |
| `aardvark-dns` | crates.io | From 1.12.0 | 1.12.2 |
| `aardvark-dns` | AlmaLinux:9 | All versions | 2:1.14.0-1.el9 |
| `aardvark-dns` | Red Hat:enterprise_linux:9::appstream | All versions | 2:1.14.0-1.el9 |
| `aardvark-dns-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 2:1.14.0-1.el9 |
| `aardvark-dns-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 2:1.14.0-1.el9 |
| `aardvark-dns` | Rocky Linux:9 | All versions | 2:1.14.0-1.el9 |
| `aardvark-dns` | openSUSE:Tumbleweed | All versions | 1.12.2-1.1 |

Products: Containers Aardvark-Dns.

## How do I fix CVE-2024-8418?

Upgrade aardvark-dns to 1.12.2 or later.

## Is CVE-2024-8418 being exploited?

There is no known exploitation of CVE-2024-8418 in the wild and no public exploit code.

## Other vulnerabilities in Red Hat Enterprise Linux 10

- [CVE-2026-35406](https://insights.sbomify.com/CVE-2026-35406/): Aardvark-dns has incorrect error handling for malformed tcp packets (medium 6.2)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-8418 and fix it if it is affected.

What it is: CVE-2024-8418 is a high-severity denial of service vulnerability in Red Hat Enterprise Linux 10, published on 4 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-8418 in the wild and no public exploit code.

Affected packages and fixed versions:
- aardvark-dns (crates.io): affected from 1.12.0; fixed in 1.12.2
- aardvark-dns (crates.io): affected from 1.12.0; fixed in 1.12.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-8418/ (Markdown: https://insights.sbomify.com/CVE-2024-8418/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-8418
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-8418
- OSV: https://osv.dev/vulnerability/CVE-2024-8418

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-8418/
Summaries are generated and may contain mistakes; the official description above is the record.
