# GHSA-84g5-x8j3-7235: Netfoil has incorrect allowlist enforcement

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-29T22:22:16.000Z
- Modified: 2026-06-25T19:56:39.293Z
- Also known as: GO-2026-5240
- Weaknesses: CWE-183, CWE-193

## Description

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

(As written by GitHub Advisory Database.)

## Affected

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

## References

- <https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-84g5-x8j3-7235> (advisory, web)
- <https://github.com/tinfoil-factory/netfoil/commit/0ca054acf97b011e4fdd40392475c7786b975ec3> (fix, web)
- <https://github.com/tinfoil-factory/netfoil> (package)
- <https://github.com/tinfoil-factory/netfoil/releases/tag/v0.2.1> (web)

## Sources

- GitHub Advisory Database: [GHSA-84g5-x8j3-7235](https://github.com/advisories/GHSA-84g5-x8j3-7235), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5240](https://pkg.go.dev/vuln/GO-2026-5240), CC-BY-4.0, modified 2026-06-25

---

Page: https://cve.day/GHSA-84g5-x8j3-7235 · Whole record: https://cve.day/GHSA-84g5-x8j3-7235.json · Rebuilt by cve.day 2026-11-25T22:56:24.744Z
