GHSA-xvg2-cgv6-6h7v: netfoil Incorrect Block Responses Could Lead Vulnerability

HIGH
CWE-693
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-xvg2-cgv6-6h7v
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product netfoil
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/tinfoil-factory/netfoil fixed: 0.4.0
Upgrade github.com/tinfoil-factory/netfoil to 0.4.0
Verify Direct and Transitive Dependencies

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

### Summary `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. ### Impact Unintended traffic could be sent to localhost. Impact depends on running services and firewall rules.

GHSA-xvg2-cgv6-6h7v Affected netfoil Versions

1 component(s)
Fixed Versions:
0.4.0
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?
GHSA-xvg2-cgv6-6h7v is a security vulnerability in netfoil involving Incorrect block responses could lead to localhost traffic under CWE-693: Protection Mechanism Failure.
Which netfoil versions are affected?
Affected versions include releases prior to 0.4.0 across affected packages: github.com/tinfoil-factory/netfoil.
What version fixes GHSA-xvg2-cgv6-6h7v?
Upgrading to 0.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/tinfoil-factory/netfoil affected?
Yes, github.com/tinfoil-factory/netfoil is affected in releases prior to 0.4.0. Upgrade your dependency to 0.4.0 or later.
What CWE is associated with GHSA-xvg2-cgv6-6h7v?
GHSA-xvg2-cgv6-6h7v is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check Go dependencies for GHSA-xvg2-cgv6-6h7v?
Run the dependency tree command: 'inspect dependencies for github.com/tinfoil-factory/netfoil'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}