—
GO-2024-2977
IP addresses were encoded in the wrong byte order in github.com/google/nftables
Quick fix
GO-2024-2977 — github.com/google/nftables: upgrade to the fixed version with the command below.
go get github.com/google/nftables@v0.2.0Details
IP addresses were encoded in the wrong byte order, resulting in an nftables configuration which did not work as intended (might block or not block the desired addresses).
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/google/nftables
Introduced in:
0.1.0Fixed in: 0.2.0Fix
go get github.com/google/nftables@v0.2.0References
- https://github.com/advisories/GHSA-qjvf-8748-9w7h[ADVISORY]
- https://github.com/google/nftables/commit/b1f901b05510bed05c232c5049f68d1511b56a19[FIX]
- https://github.com/google/nftables/issues/225[REPORT]
- https://bugs.launchpad.net/ubuntu/+source/crowdsec-firewall-bouncer/+bug/2069596[WEB]
- https://github.com/crowdsecurity/cs-firewall-bouncer/issues/368[WEB]