google/nftables · Security
github.com/google/nftable IP addresses were encoded in the wrong byte order
- GHSA ID
- GHSA-qjvf-8748-9w7h
- CVE ID
- CVE-2024-6284
- Severity
- medium
- Published
- Updated
- CVSS
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v3
- 5.6 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CVSS v4
- 6.3 · 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
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]
CWEs
- CWE-20 · Improper Input Validation
- CWE-1286 · Improper Validation of Syntactic Correctness of Input
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6284 ↗
- https://github.com/crowdsecurity/cs-firewall-bouncer/issues/368 ↗
- https://github.com/google/nftables/issues/225 ↗
- https://bugs.launchpad.net/ubuntu/+source/crowdsec-firewall-bouncer/+bug/2069596 ↗
- https://github.com/google/nftables/commit/b1f901b05510bed05c232c5049f68d1511b56a19 ↗
- https://github.com/advisories/GHSA-qjvf-8748-9w7h ↗