The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-25638

CVE-2024-25638: dnsjava DNS Cache Poisoning Vulnerability

CVE-2024-25638 is a DNS cache poisoning flaw in dnsjava that allows attackers to inject unauthorized DNS records from different zones. This article covers the technical details, affected versions, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-25638 Overview

CVE-2024-25638 is a DNS response validation vulnerability in dnsjava, a widely-used Java implementation of the Domain Name System (DNS) protocol. The vulnerability stems from insufficient verification of DNS reply records, where records are not checked for their relevance to the original query. This flaw allows an attacker to inject Resource Records (RRs) from different DNS zones into responses, potentially leading to cache poisoning attacks and DNS spoofing scenarios.

Critical Impact

Attackers can exploit this vulnerability to inject malicious DNS records from unrelated zones into responses, enabling DNS cache poisoning attacks that could redirect users to malicious servers, intercept sensitive communications, or facilitate man-in-the-middle attacks.

Affected Products

  • dnsjava versions prior to 3.6.0
  • Applications and services using vulnerable dnsjava library versions
  • Java applications implementing DNS functionality via dnsjava

Discovery Timeline

  • 2024-07-22 - CVE-2024-25638 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-25638

Vulnerability Analysis

This vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity). The core issue lies in dnsjava's failure to properly validate that DNS response records correspond to the original query's zone or domain. When processing DNS replies, the library accepts Resource Records without verifying they belong to the queried zone, creating an opportunity for attackers to inject arbitrary DNS data.

The attack requires network-level access and the ability to intercept or manipulate DNS traffic, but once in position, an attacker can respond to legitimate DNS queries with records from entirely different zones. This undermines the fundamental trust model of DNS resolution and can have cascading effects on applications relying on dnsjava for name resolution.

Root Cause

The root cause is the absence of message normalization and record relevance validation in the DNS response processing logic. Prior to the fix, dnsjava would accept and process records in the authority and additional sections of DNS responses without verifying their relationship to the queried domain. This allowed unknown or irrelevant records to be passed through to the client application or cached for future use.

Attack Vector

The attack exploits the network-based DNS resolution process. An attacker positioned to intercept DNS traffic (such as on a shared network or through BGP hijacking) can craft malicious DNS responses containing records from zones unrelated to the original query. When a vulnerable dnsjava instance processes these responses, it accepts the injected records as legitimate, potentially caching them or presenting them to the application layer.

This attack is particularly dangerous in scenarios where:

  • The application uses dnsjava as a DNS resolver
  • DNS queries traverse untrusted network segments
  • The application relies on DNS records for security-critical decisions
text
// Security patch introducing dnsjava.harden_unknown_additional configuration option
|1000
|700

+.2+|dnsjava.harden_unknown_additional
+3+|Harden against unknown records in the authority section and additional section.
+If disabled, such records are copied from the upstream and presented to the client together with the answer.
+|Boolean
+|True
+|False

4+h|dnssec options
.2+|dnsjava.dnssec.keycache.max_ttl
3+|Maximum time-to-live (TTL) of entries in the key cache in seconds.

Source: GitHub Commit 2073a0c

Detection Methods for CVE-2024-25638

Indicators of Compromise

  • Unexpected DNS records appearing in application logs that don't match queried domains
  • DNS cache entries containing records from unrelated zones
  • Network traffic showing DNS responses with authority or additional sections containing out-of-zone records
  • Applications receiving DNS resolution results that redirect to unexpected IP addresses

Detection Strategies

  • Implement deep packet inspection for DNS traffic to identify responses with out-of-zone records in authority or additional sections
  • Monitor for applications using dnsjava versions prior to 3.6.0 through software composition analysis (SCA) tools
  • Deploy network-based DNS anomaly detection to flag responses where record domains don't match query domains
  • Review application dependency manifests for vulnerable dnsjava versions

Monitoring Recommendations

  • Enable verbose DNS logging in applications using dnsjava to capture full response details
  • Implement DNSSEC validation where possible to detect tampered DNS responses
  • Configure network monitoring to alert on DNS traffic anomalies and unexpected response patterns
  • Use SentinelOne's application vulnerability scanning to identify systems running vulnerable dnsjava versions

How to Mitigate CVE-2024-25638

Immediate Actions Required

  • Upgrade dnsjava to version 3.6.0 or later immediately
  • Audit applications for dnsjava dependencies and prioritize updates for internet-facing services
  • Enable the dnsjava.harden_unknown_additional configuration option if upgrading is not immediately possible
  • Implement network-level DNS security controls such as DNSSEC validation

Patch Information

The vulnerability is fixed in dnsjava version 3.6.0. The fix introduces message normalization that properly validates DNS response records against the original query context. The patch adds the dnsjava.harden_unknown_additional configuration option, which when enabled (default: True in patched versions), hardens the library against unknown records in the authority and additional sections of DNS responses.

For detailed patch information, see the GitHub Security Advisory and the associated commit changes.

Workarounds

  • Enable DNSSEC validation at the application or network level to detect tampered responses
  • Deploy DNS over HTTPS (DoH) or DNS over TLS (DoT) to prevent on-path attackers from manipulating responses
  • Implement application-level validation of DNS records before use in security-critical operations
  • Use network segmentation to limit exposure of DNS traffic to potential attackers
bash
# Configuration example for Maven dependency update
# Update pom.xml to use patched dnsjava version
<dependency>
    <groupId>dnsjava</groupId>
    <artifactId>dnsjava</artifactId>
    <version>3.6.0</version>
</dependency>

# For Gradle, update build.gradle:
# implementation 'dnsjava:dnsjava:3.6.0'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDnsjava

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-345
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory

  • GitHub Commit Changes
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English