VYPR
High severity7.5NVD Advisory· Published May 2, 2005· Updated Apr 16, 2026

CVE-2005-0877

CVE-2005-0877

Description

Dnsmasq before 2.21 allows remote attackers to poison the DNS cache by sending forged answers to queries that were not initiated by the server.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Dnsmasq before 2.21 allows remote attackers to poison the DNS cache by sending forged answers to queries that were not initiated by the server.

Vulnerability

Dnsmasq versions prior to 2.21 are vulnerable to DNS cache poisoning. The flaw resides in the lack of verification that incoming DNS responses correspond to queries actually issued by the server, enabling a remote attacker to inject arbitrary DNS records into the cache. The attack requires no prior authentication or special configuration beyond the default behavior of the caching resolver.

Exploitation

An attacker with network access to the Dnsmasq instance can send spoofed DNS responses that appear to come from an authoritative nameserver. Because the server does not validate that the response matches an outstanding query, the crafted answer is accepted and stored in its cache. The attacker may need to race against legitimate responses, but predictable transaction IDs (common in older versions) reduce the difficulty.

Impact

Successful exploitation allows the attacker to poison the DNS cache, redirecting users to malicious hosts for domains they legitimately request. This can lead to credential theft, malware delivery, or further compromise of network services, as clients are silently directed to attacker-controlled endpoints. The scope is broad, affecting all clients that rely on the affected Dnsmasq instance for DNS resolution.

Mitigation

Upgrade to Dnsmasq 2.21 or later, which introduces proper query-response matching to prevent acceptance of unsolicited DNS answers [1]. No workaround other than patching is available; the vulnerability was fixed in the release dated before 2005-05-02. The issue is not listed in CISA's Known Exploited Vulnerabilities catalog.

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*range: <2.21
    • (no CPE)range: <2.21

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.