GHSA-3g4q-2f67-2gvh: netfoil has a resource leak in LRU cache
Summary When an entry was removed from the LRU cache, a pointer to the removed element was not properly cleaned up. Impact A local attacker can get netfoil to use more memory. By default this is limited to 100MB via systemd, which would trigger service restarts when reached.
Published Jul 7, 2026
Affected packages
github.com/tinfoil-factory/netfoil
- Ecosystem
- Go
- Affected
- < 0.3.0
- Fixed in
- 0.3.0
- Check
go list -m github.com/tinfoil-factory/netfoil
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
When an entry was removed from the LRU cache, a pointer to the removed element was not properly cleaned up.
Impact
A local attacker can get netfoil to use more memory. By default this is limited to 100MB via systemd, which would trigger service restarts when reached.
Credited to stigtsp.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-9ppr-wfw9-xvr2
Netfoil doesn't decrement TTL
mediumNov 3, 2026GHSA-4ph6-mjv7-3fq6
netfoil vulnerable to improper handling of untrusted DoH response data
low2.7Aug 24, 2026GHSA-xvg2-cgv6-6h7v
netfoil: Incorrect block responses could lead to localhost traffic
high7.4Jul 29, 2026GHSA-59qp-cfj3-rp64
netfoil has a domain name filter bypass via multiple questions
medium5.9Jul 7, 2026GHSA-7856-g3gv-9wq8
netfoil: Attacker controlled data written to logs
low2.3Jul 7, 2026GHSA-84g5-x8j3-7235
Netfoil has incorrect allowlist enforcement
medium6.9Apr 29, 2026
