GHSA-4ph6-mjv7-3fq6: Github.com/tinfoil factory/netfoil Netfoil Vulnerable To Improper Handling Vulnerability

LOW
CWE-117
Published
Advisory Summary

GHSA-4ph6-mjv7-3fq6 is a LOW netfoil vulnerable to improper handling vulnerability (CWE-117: Improper Output Neutralization for Logs) affecting Github.com/tinfoil factory/netfoil libraries in the Go ecosystem. The issue involves netfoil vulnerable to improper handling of untrusted doh response data. Remediation is available by upgrading affected packages to version 0.5.0.

GHSA-4ph6-mjv7-3fq6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4ph6-mjv7-3fq6
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-117: Improper Output Neutralization for Logs
Affected Product Github.com/tinfoil factory/netfoil
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-4ph6-mjv7-3fq6

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.5.0
Upgrade github.com/tinfoil-factory/netfoil to 0.5.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-4ph6-mjv7-3fq6, 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.5.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-117: Improper Output Neutralization for Logs, where the product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file. 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 HTTPS RR data returned from the DoH server was not properly handled. Unverified APLN data (which could contain arbitrary byte sequences) was written directly to the log. It could also cause unnecessary memory usage. The single-byte response code was also written directly to the log.

GHSA-4ph6-mjv7-3fq6 Affected Github.com/tinfoil factory/netfoil Versions

1 component(s)
Fixed Versions:
0.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/tinfoil-factory/netfoil
Go
< 0.5.0
0.5.0

References

Frequently Asked Questions

What is GHSA-4ph6-mjv7-3fq6?
GHSA-4ph6-mjv7-3fq6 is a security vulnerability in Github.com/tinfoil factory/netfoil involving netfoil vulnerable to improper handling of untrusted DoH response data under CWE-117: Improper Output Neutralization for Logs.
Which Github.com/tinfoil factory/netfoil versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: github.com/tinfoil-factory/netfoil.
What version fixes GHSA-4ph6-mjv7-3fq6?
Upgrading to 0.5.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.5.0. Upgrade your dependency to 0.5.0 or later.
What CWE is associated with GHSA-4ph6-mjv7-3fq6?
GHSA-4ph6-mjv7-3fq6 is classified under CWE-117: Improper Output Neutralization for Logs (The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.).
How can I check Go dependencies for GHSA-4ph6-mjv7-3fq6?
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-4ph6-mjv7-3fq6",
  "modified" : "2026-08-24T20:43:08Z",
  "published" : "2026-08-24T20:43:08Z",
  "aliases" : [ ],
  "summary" : "netfoil vulnerable to improper handling of untrusted DoH response data",
  "details" : "### Summary\nHTTPS RR data returned from the DoH server was not properly handled. Unverified APLN data (which could contain arbitrary byte sequences) was written directly to the log. It could also cause unnecessary memory usage. The single-byte response code was also written directly to the log.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/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.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tinfoil-factory/netfoil"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tinfoil-factory/netfoil/releases/tag/v0.5.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-117" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-24T20:43:08Z",
    "nvd_published_at" : null
  }
}