GHSA-3g4q-2f67-2gvh: netfoil has a resource leak in LRU cache
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.
AI Analysis
Technical Summary
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.
GHSA-3g4q-2f67-2gvh: netfoil has a resource leak in LRU cache
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.