---
id: GHSA-4ph6-mjv7-3fq6
title: netfoil vulnerable to improper handling of untrusted DoH response data
summary: netfoil vulnerable to improper handling of untrusted DoH response data
severity: low
cwe:
  - CWE-117
vendor: tinfoil-factory
product: github.com/tinfoil-factory/netfoil
ecosystem: go
affected:
  - github.com/tinfoil-factory/netfoil < 0.5.0
patched:
  - github.com/tinfoil-factory/netfoil 0.5.0
published: '2026-08-24'
updated: '2026-08-24'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-4ph6-mjv7-3fq6'
references:
  - url: >-
      https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6
  - url: >-
      https://github.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b
  - url: >-
      https://github.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b
  - url: 'https://github.com/tinfoil-factory/netfoil/releases/tag/v0.5.0'
  - url: 'https://github.com/advisories/GHSA-4ph6-mjv7-3fq6'
tags:
  - ghsa
  - go
ingestedAt: '2026-08-24T21:11:25.075Z'
---

## Overview

### Summary
HTTPS RR data returned from the DoH server was not properly handled. Unverified APLN data (which could contain arbitrary byte sequences) was written directly to the log. It could also cause unnecessary memory usage. The single-byte response code was also written directly to the log.

## Affected packages

- `github.com/tinfoil-factory/netfoil < 0.5.0`

## Remediation

Upgrade to a patched release:

- `github.com/tinfoil-factory/netfoil 0.5.0`
