GHSA-84g5-x8j3-7235: Github.com/tinfoil factory/netfoil Remote Code Execution Vulnerability
MODERATEGHSA-84g5-x8j3-7235 is a MODERATE remote code execution vulnerability (CWE-183: Permissive List of Allowed Inputs) affecting Github.com/tinfoil factory/netfoil libraries in the Go ecosystem. The issue involves netfoil has incorrect allowlist enforcement. Remediation is available by upgrading affected packages to version 0.2.1.
GHSA-84g5-x8j3-7235 at a Glance
How to Fix GHSA-84g5-x8j3-7235
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.2.1
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-84g5-x8j3-7235, 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.2.1), 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-183: Permissive List of Allowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses. 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-84g5-x8j3-7235 Affected Github.com/tinfoil factory/netfoil Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/tinfoil-factory/netfoil
|
Go |
< 0.2.1
|
0.2.1
|
References
Frequently Asked Questions
What is GHSA-84g5-x8j3-7235?
Which Github.com/tinfoil factory/netfoil versions are affected?
What version fixes GHSA-84g5-x8j3-7235?
Is github.com/tinfoil-factory/netfoil affected?
What CWE is associated with GHSA-84g5-x8j3-7235?
How can I check Go dependencies for GHSA-84g5-x8j3-7235?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-84g5-x8j3-7235",
"modified" : "2026-04-29T22:22:16Z",
"published" : "2026-04-29T22:22:16Z",
"aliases" : [ ],
"summary" : "Netfoil has incorrect allowlist enforcement",
"details" : "### Summary\nRules could be bypassed by changing the first character: `example.com` could be be bypassed by e.g. `fxample.com`.\n\n### Details\nOff-by-one error in the suffixtrie implementation.\n\n### Impact\nThe domain filter could be bypassed. Please note that DNS filtering alone is not enough to block malicious traffic.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/tinfoil-factory/netfoil"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-84g5-x8j3-7235"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/commit/0ca054acf97b011e4fdd40392475c7786b975ec3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tinfoil-factory/netfoil"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/releases/tag/v0.2.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-183", "CWE-193" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-29T22:22:16Z",
"nvd_published_at" : null
}
}