# GHSA-4ph6-mjv7-3fq6: netfoil vulnerable to improper handling of untrusted DoH response data

- Severity: Low (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-24T20:43:08.000Z
- Modified: 2026-08-26T01:21:46.308Z
- Also known as: GO-2026-6277
- Weaknesses: CWE-117

## 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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/tinfoil-factory/netfoil (Go): before 0.5.0

## References

- <https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6> (advisory, web)
- <https://github.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b> (fix, web)
- <https://github.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b> (fix, web)
- <https://github.com/tinfoil-factory/netfoil> (package)
- <https://github.com/tinfoil-factory/netfoil/releases/tag/v0.5.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-4ph6-mjv7-3fq6](https://github.com/advisories/GHSA-4ph6-mjv7-3fq6), CC-BY-4.0, modified 2026-08-26
- Go Vulnerability Database: [GO-2026-6277](https://pkg.go.dev/vuln/GO-2026-6277), CC-BY-4.0, modified 2026-08-26

---

Page: https://cve.day/GHSA-4ph6-mjv7-3fq6 · Whole record: https://cve.day/GHSA-4ph6-mjv7-3fq6.json · Rebuilt by cve.day 2026-11-25T22:56:25.299Z
