GHSA-3g4q-2f67-2gvh: Github.com/tinfoil factory/netfoil Remote Code Execution Vulnerability
LOWGHSA-3g4q-2f67-2gvh is a LOW remote code execution vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Github.com/tinfoil factory/netfoil libraries in the Go ecosystem. The issue involves netfoil has a resource leak in lru cache. Remediation is available by upgrading affected packages to version 0.3.0.
GHSA-3g4q-2f67-2gvh at a Glance
How to Fix GHSA-3g4q-2f67-2gvh
To remediate this vulnerability, upgrade all affected Github.com/tinfoil factory/netfoil dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/tinfoil-factory/netfoil to 0.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/tinfoil-factory/netfoil
How to Check if You Are Affected
To determine whether your application is affected by GHSA-3g4q-2f67-2gvh, inspect your project dependencies for Github.com/tinfoil factory/netfoil:
inspect dependencies for github.com/tinfoil-factory/netfoil
Analyze the terminal output to locate any version of Github.com/tinfoil factory/netfoil in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In Github.com/tinfoil factory/netfoil, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-3g4q-2f67-2gvh Affected Github.com/tinfoil factory/netfoil Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/tinfoil-factory/netfoil
|
Go |
< 0.3.0
|
0.3.0
|
References
Frequently Asked Questions
What is GHSA-3g4q-2f67-2gvh?
Which Github.com/tinfoil factory/netfoil versions are affected?
What version fixes GHSA-3g4q-2f67-2gvh?
Is github.com/tinfoil-factory/netfoil affected?
What CWE is associated with GHSA-3g4q-2f67-2gvh?
How can I check Go dependencies for GHSA-3g4q-2f67-2gvh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3g4q-2f67-2gvh",
"modified" : "2026-07-07T20:04:01Z",
"published" : "2026-07-07T20:04:01Z",
"aliases" : [ ],
"summary" : "netfoil has a resource leak in LRU cache",
"details" : "### Summary\nWhen an entry was removed from the LRU cache, a pointer to the removed element was not properly cleaned up.\n\n### Impact\nA 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/tinfoil-factory/netfoil"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-3g4q-2f67-2gvh"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tinfoil-factory/netfoil"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-401" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-07T20:04:01Z",
"nvd_published_at" : null
}
}