# GHSA-3g4q-2f67-2gvh: netfoil has a resource leak in LRU cache

- Severity: Low (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-07T20:04:01.000Z
- Modified: 2026-07-21T19:19:26.481Z
- Also known as: GO-2026-5933
- Weaknesses: CWE-401

## 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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/tinfoil-factory/netfoil (Go): before 0.3.0

## References

- <https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-3g4q-2f67-2gvh> (advisory, web)
- <https://github.com/tinfoil-factory/netfoil> (package)

## Sources

- GitHub Advisory Database: [GHSA-3g4q-2f67-2gvh](https://github.com/advisories/GHSA-3g4q-2f67-2gvh), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5933](https://pkg.go.dev/vuln/GO-2026-5933), CC-BY-4.0, modified 2026-07-21

---

Page: https://cve.day/GHSA-3g4q-2f67-2gvh · Whole record: https://cve.day/GHSA-3g4q-2f67-2gvh.json · Rebuilt by cve.day 2026-11-25T22:56:25.112Z
