Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/0xERR0R/blocky
  4. ›
  5. GHSA-x845-2f78-7v36

GHSA-x845-2f78-7v36: Blocky DNSSEC validation bypass and validation-cache scope pollution

June 19, 2026

Blocky accepts and caches forged DNS answers while dnssec.validate: true is enabled. The issue has two related exploit paths:

  1. Basic DNSSEC validation bypass. If an untrusted upstream returns an unsigned positive answer for a DNSSEC-signed public domain, Blocky classifies the response as Insecure solely because the response contains no RRSIG records. It does not first check the DS/DNSKEY chain to determine whether the queried name is below a signed delegation. The forged unsigned answer is returned and cached.

  2. Validation-cache scope pollution through forged insecure proofs. If a response contains some RRSIG material and enters RRset validation, an attacker-controlled response path can still cause Blocky to cache ValidationResultInsecure for the bare domain name by returning a DS response with no DS records and an unsigned NSEC/NSEC3 record in the authority section. Blocky treats the mere presence of NSEC/NSEC3 as authenticated DS absence and stores the resulting Insecure state without validating the parent-zone proof. That cached state is keyed only by domain name and can be reused for later responses and cache hits.

Both paths were reproduced through Blocky’s real DNS listener using external UDP DNS client queries. In both reproductions, the malicious upstream was shut down before the second query; Blocky still returned the poisoned answer from its own cache.

References

  • github.com/0xERR0R/blocky/security/advisories/GHSA-x845-2f78-7v36
  • github.com/advisories/GHSA-x845-2f78-7v36

Code Behaviors & Features

Detect and mitigate GHSA-x845-2f78-7v36 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.28.0 before 0.32.0

Fixed versions

  • 0.32.0

Solution

Upgrade to version 0.32.0 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error
  • CWE-807: Reliance on Untrusted Inputs in a Security Decision

Source file

go/github.com/0xERR0R/blocky/GHSA-x845-2f78-7v36.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:52 +0000.