Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Low
Published: 07/07/2026 (07/07/2026, 20:04:01 UTC)
Source: GCVE Database
Product: github.com/tinfoil-factory/netfoil

Description

A resource leak vulnerability exists in the LRU cache implementation of netfoil before version 0.3.0. When entries are removed from the cache, pointers to those elements are not properly cleaned up, causing increased memory usage. This issue can be triggered by a local attacker, potentially causing the netfoil service to consume more memory than intended. By default, systemd limits this memory usage to 100MB, which would lead to service restarts once reached. The vulnerability is classified as low severity.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Goghsa
github.com/tinfoil-factory/netfoil
Affected versions
<0.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 13:46:14 UTC

Technical Analysis

The netfoil project (github.com/tinfoil-factory/netfoil) contains a resource leak vulnerability in its LRU cache implementation in versions prior to 0.3.0. Specifically, when an entry is removed from the cache, a pointer to the removed element remains uncleared, causing a memory leak. This can be exploited by a local attacker to increase memory consumption of the netfoil service. The default systemd memory limit of 100MB would cause the service to restart once this threshold is exceeded. There are no known exploits in the wild and no official patch or remediation information is provided in the source data.

Potential Impact

The vulnerability allows a local attacker to cause increased memory usage in the netfoil service due to a resource leak in the LRU cache. This can lead to service instability or restarts when the memory consumption exceeds the systemd-imposed limit of 100MB. There is no indication of privilege escalation, remote exploitation, or data compromise.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, monitoring memory usage and adjusting systemd service limits or restarting the service proactively may help mitigate service disruptions. No official fix or workaround is documented in the provided data.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-3g4q-2f67-2gvh
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["Go"]
Database Specific Severity
LOW
Cvss Version
4.0

Threat ID: 6a4e4ef9c9d9e3dbe328cf37

Added to database: 07/08/2026, 13:22:01 UTC

Last enriched: 07/08/2026, 13:46:14 UTC

Last updated: 07/09/2026, 01:02:17 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses