GitHub Advisoryadvisory · Go
GHSA-4ph6-mjv7-3fq6 netfoil vulnerable to improper handling of untrusted DoH response data
LOW
Official page ↗
- Ecosystem
- Go
- Packages
- github.com/tinfoil-factory/netfoil
- Severity
- Low
- CVSS vector
- 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
- Weaknesses
- CWE-117
- Reviewed
- 2026-08-24
Affected packages
• Go github.com/tinfoil-factory/netfoil: < 0.5.0 → fixed in 0.5.0
Description
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.
Related
Weakness · CWE (1)
- CWE-117 Improper Output Neutralization for Logs weakness
References
- https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6 web
- https://github.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b web
- https://github.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b web
- https://github.com/tinfoil-factory/netfoil package
- https://github.com/tinfoil-factory/netfoil/releases/tag/v0.5.0 web