---
id: "GHSA-9ppr-wfw9-xvr2"
kind: "vulnerability"
aliases: ["GHSA-9ppr-wfw9-xvr2"]
title: "Netfoil doesn't decrement TTL"
severity: "medium"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/tinfoil-factory/netfoil", "fixed": ["0.6.1"], "affected": ">= 0.3.0, < 0.6.1", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["cwe-672", "dns", "go", "netfoil", "package"]
not_affected_if: ["module-version-outside-range"]
published_at: "2026-11-03T16:48:29+00:00"
first_seen_at: "2026-11-03T16:50:48+00:00"
updated_at: "2026-11-03T16:52:37+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-9ppr-wfw9-xvr2", "first_seen_at": "2026-11-03T16:50:48+00:00"}]
---

# Netfoil doesn't decrement TTL

Netfoil, a Go DNS component, did not decrement the TTL of cached records. Stale records continued to be served after they should have expired.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/tinfoil-factory/netfoil affected >= 0.3.0, < 0.6.1 fixed 0.6.1

## How to check

- Check the Go module version in go.mod for `github.com/tinfoil-factory/netfoil`

## Fix

- Go module `github.com/tinfoil-factory/netfoil`: move to `0.6.1` or later (affected `>= 0.3.0`, `< 0.6.1`)

## Timeline

- 2026-11-03T16:50:48+00:00 ghsa https://github.com/advisories/GHSA-9ppr-wfw9-xvr2

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/tinfoil-factory/netfoil/security-advisories/GHSA-9ppr-wfw9-xvr2
- [advisory] Maintainer's advisory: github.com https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-9ppr-wfw9-xvr2
- [fix] Patch: github.com https://github.com/tinfoil-factory/netfoil/pull/44
- [fix] Patch: github.com https://github.com/tinfoil-factory/netfoil/commit/ea42977900c864b7b1c42f26c5870c86008118a0
- [fix] Release: github.com https://github.com/tinfoil-factory/netfoil/releases/tag/v0.6.1

## From the sources

### Summary
TTL was not decremented, so stale records would continue to be served.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
