GitHub Advisoryadvisory · Go
GHSA-3g4q-2f67-2gvh netfoil has a resource leak in LRU cache
LOW
Official page ↗
- Ecosystem
- Go
- Packages
- github.com/tinfoil-factory/netfoil
- Severity
- Low
- CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
- Weaknesses
- CWE-401
- Reviewed
- 2026-07-07
Affected packages
• Go github.com/tinfoil-factory/netfoil: < 0.3.0 → fixed in 0.3.0
Description
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.
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness