CVE-2024-6284
NoneCVSS
—
EPSS
0.3%
Published
Jul 3, 2024
CISA due date
—
Cloudanix analysis
A coding error in a network-rules library could make firewall rules block or allow the wrong addresses, leaving systems less protected than their owners intended.
- Exploitation
- Other
- Attacker needs
- None
- Complexity
- High
- Impact
- Other
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
IP addresses supplied to the nftables library are encoded using incorrect byte order, producing nftables rulesets that apply the opposite allow/deny semantics than intended.
Why it matters to the business
Network filtering intended to protect assets may silently fail, permitting unwanted traffic or blocking legitimate traffic and creating operational or compliance exposure.
How an attack unfolds
An attacker sends traffic that the operator believed would be blocked by rules generated through the affected library version; because byte-order reversal inverts the match, the traffic is permitted instead.
How to fix it
Upgrade all Go modules that import github.com/google/nftables to version v0.2.0 or later and regenerate any previously generated nftables configuration.
How to confirm the fix worked
Confirm the Go module version is at least v0.2.0; regenerate a known test ruleset containing explicit IPv4/IPv6 matches and verify the resulting nftables dump contains the correct byte order.
Typical attack path
- Operator uses github.com/google/nftables v0.1.0 to build and apply nftables rules containing IP address matches
- Library emits rules with reversed byte order for the supplied addresses
- nftables kernel engine therefore matches the inverted address set
- Attacker traffic that should have been dropped is allowed (or vice versa)
How to detect it
Review build and deployment logs for references to github.com/google/nftables v0.1.0; inspect generated nftables output for IPv4/IPv6 address octets that appear byte-reversed relative to the intended values.
What your security team should do
- Immediately inventory all builds that depend on github.com/google/nftables and schedule upgrade to v0.2.0
- Re-apply nftables rules from the corrected library before the next change window
- Add a dependency-version check to CI pipelines that gate on nftables >= v0.2.0
The record
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
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/google/nftables | 0.1.0 | 0.2.0 |
| Debian:12 | golang-github-google-nftables | 0 | 0.1.0-4~deb12u1 |
| Debian:13 | golang-github-google-nftables | 0 | 0.1.0-4 |
| Debian:14 | golang-github-google-nftables | 0 | 0.1.0-4 |
| Ubuntu:24.04:LTS | golang-github-google-nftables | 0 | No fix |
| Ubuntu:24.10 | golang-github-google-nftables | 0 | No fix |
| go | github.com/google/nftables | 0.1.0 | 0.2.0 |
Related vulnerabilities
- CVE-2026-113786 pypdf is a free and open-source pure-python PDF library. CWE-20
- CVE-2026-112081 A vulnerability was determined in hankcs HanLP up to 2.1.0-beta.64. CWE-20
- CVE-2026-111869 A vulnerability was identified in makeplane plane up to 1.4.2. CWE-20
- CVE-2026-100347 kin-openapi is a Go project for handling OpenAPI files. CWE-20
- CVE-2026-99999 In the Linux kernel, the following vulnerability has been resolved: ipv4: validate… CWE-20
- CVE-2026-107726 Hazelcast is a unified real-time data platform combining stream processing with a fast… CWE-20
- CVE-2026-105757 vLLM is an inference and serving engine for large language models. CWE-20
- CVE-2026-105756 vLLM is an inference and serving engine for large language models. CWE-20