GHSA-84g5-x8j3-7235: Github.com/tinfoil factory/netfoil Remote Code Execution Vulnerability

MODERATE
CWE-183 CWE-193
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-84g5-x8j3-7235
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-183: Permissive List of Allowed Inputs
Affected Product Github.com/tinfoil factory/netfoil
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/tinfoil-factory/netfoil fixed: 0.2.1
Upgrade github.com/tinfoil-factory/netfoil to 0.2.1
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-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

### Summary Rules could be bypassed by changing the first character: `example.com` could be be bypassed by e.g. `fxample.com`. ### Details Off-by-one error in the suffixtrie implementation. ### Impact The domain filter could be bypassed. Please note that DNS filtering alone is not enough to block malicious traffic.

GHSA-84g5-x8j3-7235 Affected Github.com/tinfoil factory/netfoil Versions

1 component(s)
Fixed Versions:
0.2.1
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?
GHSA-84g5-x8j3-7235 is a security vulnerability in Github.com/tinfoil factory/netfoil involving Netfoil has incorrect allowlist enforcement under CWE-183: Permissive List of Allowed Inputs.
Which Github.com/tinfoil factory/netfoil versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: github.com/tinfoil-factory/netfoil.
What version fixes GHSA-84g5-x8j3-7235?
Upgrading to 0.2.1 (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.2.1. Upgrade your dependency to 0.2.1 or later.
What CWE is associated with GHSA-84g5-x8j3-7235?
GHSA-84g5-x8j3-7235 is classified under CWE-183: Permissive List of Allowed Inputs (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.).
How can I check Go dependencies for GHSA-84g5-x8j3-7235?
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-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
  }
}