{"id":"CVE-2024-6284","published":"2024-07-03T22:58:17Z","modified":"2025-09-08T09:36:50Z","title":"Improper IPv4 and IPv6 byte order storage in github.com/google/nftables","vendor":"Google","product":"https://github.com/google/nftables","tier":"tail","description":{"text":"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).\n\nThis issue affects:  https://pkg.go.dev/github.com/google/nftables@v0.1.0 \n\nThe bug was fixed in the next released version:  https://pkg.go.dev/github.com/google/nftables@v0.2.0","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00287,"percentile":0.21686,"provenance":"source"},"cwes":[{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"},{"id":"CWE-1389","name":"Incorrect Parsing of Numbers with Different Radices"}],"references":[{"url":"https://github.com/google/nftables/issues/225","tags":[]},{"url":"https://github.com/crowdsecurity/cs-firewall-bouncer/issues/368","tags":[]},{"url":"https://bugs.launchpad.net/ubuntu/+source/crowdsec-firewall-bouncer/+bug/2069596","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":4.34},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"google","affectedVersions":[{"vendor":"Google","product":"https://github.com/google/nftables","versions":["0.1.0"]}],"fixedVersions":[{"vendor":"Google","product":"https://github.com/google/nftables","versions":["0.2.0"]}],"capec":[{"id":"CAPEC-180","name":"Exploiting Incorrectly Configured Access Control Security Levels"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-19T14:56:05.757333Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/google/nftables","vulnerableRanges":[">=0.1.0, <0.2.0"],"patched":["0.2.0"],"from":["GHSA-qjvf-8748-9w7h","GO-2024-2977"],"provenance":"source"}],"summary":{"text":"The flaw is that the google/nftables Go library encodes IPv4 and IPv6 addresses in the wrong byte order, so the nftables rules it produces do not behave as intended. An attacker with network access and no privileges, with the attack requiring specialised conditions, could exploit this so that the configured firewall rules might block or fail to block the addresses the operator intended.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:36Z"},"euvd":{"id":"EUVD-2024-2405","exploited":false,"provenance":"source"}}