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

- Severity: Medium 6.3 (CVSS:4.0, scored by Google) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-07-03T22:58:17.340Z
- Modified: 2026-06-17T08:17:42.320Z
- Also known as: GHSA-qjvf-8748-9w7h, GO-2024-2977
- Weaknesses: CWE-20, CWE-1286, CWE-1389
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Google

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

(As written by CVE List.)

## Affected

- Google https://github.com/google/nftables: 0.1.0 (not affected: 0.2.0)
- netfilter nftables: from 0.1.0 before 0.2.0
- github.com/google/nftables (Go): from 0.1.0 before 0.2.0
- google nftables: 0.1.0

## Every score

- Google: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/google/nftables/issues/225> (exploit, issue-tracking, report, web)
- <https://github.com/crowdsecurity/cs-firewall-bouncer/issues/368> (exploit, issue-tracking, web)
- <https://bugs.launchpad.net/ubuntu/+source/crowdsec-firewall-bouncer/+bug/2069596> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6284> (advisory)
- <https://github.com/google/nftables/commit/b1f901b05510bed05c232c5049f68d1511b56a19> (fix, web)
- <https://github.com/google/nftables> (package)
- <https://github.com/advisories/GHSA-qjvf-8748-9w7h> (advisory)

## Sources

- CVE List: [CVE-2024-6284](https://www.cve.org/CVERecord?id=CVE-2024-6284), CVE Terms of Use, modified 2025-09-08
- GitHub Advisory Database: [GHSA-qjvf-8748-9w7h](https://github.com/advisories/GHSA-qjvf-8748-9w7h), CC-BY-4.0, modified 2025-09-10
- Go Vulnerability Database: [GO-2024-2977](https://pkg.go.dev/vuln/GO-2024-2977), CC-BY-4.0, modified 2024-07-09
- NVD: [CVE-2024-6284](https://nvd.nist.gov/vuln/detail/CVE-2024-6284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6284 · Whole record: https://cve.day/CVE-2024-6284.json · Rebuilt by cve.day 2026-11-25T22:58:42.500Z
