GHSA-xvg2-cgv6-6h7v: netfoil Incorrect Block Responses Could Lead Vulnerability
HIGHGHSA-xvg2-cgv6-6h7v is a HIGH incorrect block responses could lead vulnerability (CWE-693: Protection Mechanism Failure) affecting netfoil libraries in the Go ecosystem. The issue involves incorrect block responses could lead to localhost traffic. Remediation is available by upgrading affected packages to version 0.4.0.
GHSA-xvg2-cgv6-6h7v at a Glance
How to Fix GHSA-xvg2-cgv6-6h7v
To remediate this vulnerability, upgrade all affected 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.4.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-xvg2-cgv6-6h7v, inspect your project dependencies for netfoil:
inspect dependencies for github.com/tinfoil-factory/netfoil
Analyze the terminal output to locate any version of netfoil in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.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-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In 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-xvg2-cgv6-6h7v Affected netfoil Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/tinfoil-factory/netfoil
|
Go |
< 0.4.0
|
0.4.0
|
References
Frequently Asked Questions
What is GHSA-xvg2-cgv6-6h7v?
Which netfoil versions are affected?
What version fixes GHSA-xvg2-cgv6-6h7v?
Is github.com/tinfoil-factory/netfoil affected?
What CWE is associated with GHSA-xvg2-cgv6-6h7v?
How can I check Go dependencies for GHSA-xvg2-cgv6-6h7v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xvg2-cgv6-6h7v",
"modified" : "2026-07-29T17:03:48Z",
"published" : "2026-07-29T17:03:48Z",
"aliases" : [ ],
"summary" : "netfoil: Incorrect block responses could lead to localhost traffic",
"details" : "### Summary\n`0.0.0.0` was used instead of NXDOMAIN for block responses. On Linux, which is the target platform for netfoil, the `0.0.0.0` is sent to localhost rather than just dropped.\n\n### Impact\nUnintended traffic could be sent to localhost. Impact depends on running services and firewall rules.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/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.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-xvg2-cgv6-6h7v"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/pull/33"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/commit/891d3513c77999a9deef9f23506807d9653ee448"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tinfoil-factory/netfoil"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/releases/tag/v0.4.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-693" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-29T17:03:48Z",
"nvd_published_at" : null
}
}