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

Not scored Published

A local attacker can exhaust memory in the netfoil LRU cache, causing service restarts due to resource leaks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is GHSA-3g4q-2f67-2gvh?

GHSA-3g4q-2f67-2gvh is a denial of service vulnerability in github.com/tinfoil-factory/netfoil, published on 7 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by GHSA-3g4q-2f67-2gvh?

3 open source packages ship an affected version, including github.com/tinfoil-factory/netfoil.

PackageAffectedFixed in
github.com/tinfoil-factory/netfoil GoAll versions0.3.0
github.com/tinfoil-factory/netfoil GoAll versions0.3.0
github.com/tinfoil-factory/netfoil GoAll versions0.3.0

How do I fix GHSA-3g4q-2f67-2gvh?

Upgrade github.com/tinfoil-factory/netfoil to 0.3.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-3g4q-2f67-2gvh being exploited?

There is no known exploitation of GHSA-3g4q-2f67-2gvh in the wild and no public exploit code.

Sources

Also known as GO-2026-5933.

Is GHSA-3g4q-2f67-2gvh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free