CVE-2024-6284 Improper IPv4 and IPv6 byte order storage in github.com/google/nftables
Incorrect byte order handling in the Go nftables library causes firewall rules to fail, potentially allowing unauthorized network access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-6284?
CVE-2024-6284 is a medium-severity vulnerability in https://github.com/google/nftables, published on 3 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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/[email protected]
The bug was fixed in the next released version: https://pkg.go.dev/github.com/google/[email protected]
Which versions are affected by CVE-2024-6284?
3 open source packages ship an affected version, including github.com/google/nftables. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/google/nftables Go | From 0.1.0 | 0.2.0 |
github.com/google/nftables Go | From 0.1.0 | 0.2.0 |
github.com/google/nftables Go | From 0.1.0 | 0.2.0 |
Products include Google Nftables.
How do I fix CVE-2024-6284?
Upgrade github.com/google/nftables to 0.2.0 or later.
Is CVE-2024-6284 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6284 exists.
Sources
Also known as DEBIAN-CVE-2024-6284, GHSA-qjvf-8748-9w7h, GO-2024-2977, UBUNTU-CVE-2024-6284.