{"answers":{"affected":"3 open source packages ship an affected version, including github.com/google/nftables. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6284 exists.","fix":"Upgrade github.com/google/nftables to 0.2.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-6284 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6284 exists.\n\nAffected packages and fixed versions:\n- github.com/google/nftables (Go): affected from 0.1.0; fixed in 0.2.0\n- github.com/google/nftables (Go): affected from 0.1.0; fixed in 0.2.0\n- github.com/google/nftables (Go): affected from 0.1.0; fixed in 0.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6284/ (Markdown: https://insights.sbomify.com/CVE-2024-6284/index.md)","id":"CVE-2024-6284","markdown":"https://insights.sbomify.com/CVE-2024-6284/index.md","name":"CVE-2024-6284","record":{"aliases":["DEBIAN-CVE-2024-6284","GHSA-qjvf-8748-9w7h","GO-2024-2977","UBUNTU-CVE-2024-6284"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go nftables library","requires_auth":"none","summary":"Incorrect byte order handling in the Go nftables library causes firewall rules to fail, potentially allowing unauthorized network access.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"nftables","vendor":"google"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-1389","name":"Incorrect Parsing of Numbers with Different Radices"},{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"}],"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).\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","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Improper IPv4 and IPv6 byte order storage in github.com/google/nftables","id":"CVE-2024-6284","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"misconfiguration","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"Integer Underflow in Memory Range Check in Renesas RCAR","id":"CVE-2024-6285"},"packages":[{"ecosystem":"Go","fixed":["0.2.0"],"introduced":["0.1.0"],"last_affected":[],"package":"github.com/google/nftables","purl":null,"source":"GHSA-qjvf-8748-9w7h"},{"ecosystem":"Go","fixed":["0.2.0"],"introduced":["0.1.0"],"last_affected":[],"package":"github.com/google/nftables","purl":"pkg:golang/github.com/google/nftables","source":"GHSA-qjvf-8748-9w7h"},{"ecosystem":"Go","fixed":["0.2.0"],"introduced":["0.1.0"],"last_affected":[],"package":"github.com/google/nftables","purl":"pkg:golang/github.com/google/nftables","source":"GO-2024-2977"}],"prev":{"headline":"Cross-site scripting in DethemeKit for Elementor","id":"CVE-2024-6283"},"products":["https://github.com/google/nftables"],"published":"2024-07-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-08","vendors":["Google"]},"summary":"Incorrect byte order handling in the Go nftables library causes firewall rules to fail, potentially allowing unauthorized network access.","url":"https://insights.sbomify.com/CVE-2024-6284/"}