☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-704
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-24199

CVE-2024-24199 Supply Chain Attack in Smartdns
📅 PUBLISHED: 2024-06-06 21:27 UTC 🔄 UPDATED: 2026-08-21 19:37 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.13%
👁️
0.13% probability
3.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: commit 54b4dc (unreleased, no version tag)
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-24199 is a memory safety vulnerability discovered in the SmartDNS project, specifically in the smartdns/src/dns.c file at commit 54b4dc. The issue involves a misaligned address, which can lead to undefined behavior, potential crashes, or exploitation for denial of service (DoS). The vulnerability has a CVSS score of 0.0, indicating no official severity assessment, but the nature of the flaw suggests a medium to high risk in environments where SmartDNS is exposed to untrusted traffic. No public proof-of-concept (PoC) or exploit code is available, and the vendor has not released a patch.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

SmartDNS is a DNS server software typically compiled from source. There is no official package manager distribution (e.g., NPM, PyPI, Go, Ruby) for this project. The vulnerability affects users who build from the specific commit 54b4dc. Supply chain risk is low, but users should verify the integrity of their source code and consider using a later commit or a stable release.

CVSS Breakdown & Threat Level

  • CVSS Score: 0.0 (Not officially assigned)
  • Attack Vector: Network (likely)
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None (likely)
  • Integrity Impact: None (likely)
  • Availability Impact: High (potential crash)
  • Threat Level: Medium (due to potential DoS)

Deep Dive & Mechanics

The vulnerability is a misaligned address issue in smartdns/src/dns.c. In C, accessing a pointer that is not properly aligned for its type (e.g., reading a 32-bit integer from an address not divisible by 4) results in undefined behavior. On some architectures (e.g., ARM), this causes a hardware exception (SIGBUS), leading to a crash. On x86, it may cause performance degradation or incorrect data reads.

The specific code path involves parsing DNS packets. A crafted DNS query can cause the parser to compute an unaligned pointer, likely when extracting resource record data or handling compression pointers. The misalignment occurs because the code does not ensure that the pointer is aligned before dereferencing it.

Vulnerable vs. Patched Code

Vulnerable Code (commit 54b4dc):

// Hypothetical example based on the CVE description
void parse_dns_packet(uint8_t *buffer, size_t len) {
    uint32_t *ptr = (uint32_t *)(buffer + offset); // Misaligned if offset not multiple of 4
    uint32_t value = *ptr; // Undefined behavior
}

Patched Code (hypothetical fix):

void parse_dns_packet(uint8_t *buffer, size_t len) {
    uint32_t value;
    memcpy(&value, buffer + offset, sizeof(value)); // Safe, handles alignment
}

The fix involves using memcpy to safely read misaligned data or adding alignment checks before pointer casting.

Exploitation & Lab Setup

Red Team

  1. Environment: Set up a SmartDNS server (commit 54b4dc) on a Linux VM.
  2. Craft Payload: Create a DNS query with a malformed compression pointer that causes an unaligned access.
  3. Trigger: Send the crafted query to the server.
  4. Expected Result: Server crashes (DoS). No code execution is expected due to the nature of the bug.

Example payload (Python):

import socket

# Craft a DNS query with a malformed compression pointer
# This is a simplified example; actual exploitation requires deep DNS protocol knowledge
payload = b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00'  # DNS header
payload += b'\x03www\x06google\x03com\x00\x00\x01\x00\x01'  # Standard query
# Add a malformed pointer to cause misalignment
payload += b'\xc0\x0c'  # Compression pointer (may cause misalignment)

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(payload, ('target_ip', 53))

Blue Team

  1. Detection: Monitor for DNS queries with unusual compression pointers or malformed packets.
  2. Mitigation: Use a later commit or apply a patch that uses memcpy for unaligned reads.
  3. Harden: Run SmartDNS in a sandboxed environment with limited privileges.
  4. Logging: Enable verbose logging to capture crash dumps.

Indicators of Compromise (IOCs)

  • Network: DNS queries with malformed compression pointers (e.g., offset values that are not multiples of 4).
  • System: SmartDNS process crashes (SIGBUS on ARM, SIGSEGV on x86).
  • Logs: Entries like smartdns[pid]: segfault at <address> ip <ip> sp <sp> error 4 in syslog.

Detection Engineering

YARA Rule

rule CVE_2024_24199_SmartDNS_Misalignment {
    meta:
        description = "Detects malformed DNS packets targeting SmartDNS misalignment vulnerability"
        author = "Valters IT"
        date = "2025-01-01"
        reference = "CVE-2024-24199"
    strings:
        $dns_header = { 00 00 00 00 00 01 00 00 00 00 00 00 }
        $compression_ptr = { c0 [0-3] }  // Compression pointer with offset
    condition:
        $dns_header at 0 and #compression_ptr > 0
}

Sigma Rule

title: SmartDNS Misalignment Vulnerability Exploitation Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects DNS queries with malformed compression pointers targeting CVE-2024-24199
author: Valters IT
logsource:
    category: network
    product: dns
detection:
    selection:
        dns.flags: 0x0100  # Standard query
        dns.qry.name: "*"
        dns.compression_ptr: true
    condition: selection
falsepositives:
    - Legitimate DNS queries with compression
level: medium

Suricata Rule

alert udp any any -> any 53 (msg:"CVE-2024-24199 SmartDNS Misalignment Attempt"; content:"|c0|"; offset:12; depth:2; classtype:attempted-dos; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Avoid using commit 54b4dc. Use a later commit or a stable release.
  2. Patch: Apply a fix that uses memcpy for unaligned reads or adds alignment checks.
  3. Workaround: Run SmartDNS behind a firewall that filters malformed DNS packets.
  4. Monitoring: Deploy the detection rules above to identify exploitation attempts.
  5. Long-term: Contribute to the SmartDNS project to ensure proper memory safety practices.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

smartdns
smartdns dns

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-24199/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.