{"answers":{"affected":"7 open source packages ship an affected version, including github.com/nats-io/nats-server, nats and github.com/nats-io/nats-server/v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-28466 in the wild and no public exploit code.","fix":"Upgrade github.com/nats-io/nats-server to 2.2.0 or later.","what":"CVE-2020-28466 is a high-severity denial of service vulnerability in github.com/nats-io/nats-server/server, published on 7 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-28466 and fix it if it is affected.\n\nWhat it is: CVE-2020-28466 is a high-severity denial of service vulnerability in github.com/nats-io/nats-server/server, published on 7 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-28466 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/nats-io/nats-server (Go): affected all versions; no fix listed\n- github.com/nats-io/nats-server (Go): affected all versions; fixed in 2.2.0\n- github.com/nats-io/nats-server (Go): affected all versions; fixed in 2.2.0\n- nats (Bitnami): affected from 2.0.0; fixed in 2.2.0\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.2.0\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.2.0\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.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-2020-28466/ (Markdown: https://insights.sbomify.com/CVE-2020-28466/index.md)","id":"CVE-2020-28466","markdown":"https://insights.sbomify.com/CVE-2020-28466/index.md","name":"CVE-2020-28466","record":{"aliases":["BIT-nats-2020-28466","GHSA-m4jx-6526-vvhm","GO-2022-0855","SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"NATS messaging server","requires_auth":"none","summary":"Untrusted accounts can crash the NATS server by exploiting service export/import cycles, causing a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"nats-server","vendor":"linuxfoundation"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[],"description":"This affects all versions of package github.com/nats-io/nats-server/server. Untrusted accounts are able to crash the server using configs that represent a service export/import cycles. Disclaimer from the maintainers: Running a NATS service which is exposed to untrusted users presents a heightened risk. Any remote execution flaw or equivalent seriousness, or denial-of-service by unauthenticated users, will lead to prompt releases by the NATS maintainers. Fixes for denial of service issues with no threat of remote execution, when limited to account holders, are likely to just be committed to the main development branch with no special attention. Those who are running such services are encouraged to build regularly from git.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of Service (DoS)","id":"CVE-2020-28466","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2020"},"n_packages":7,"n_references":4,"next":{"headline":"Improper Control of Generation of Code ('Code Injection')","id":"CVE-2020-28468"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.0"],"introduced":["2.0.0"],"last_affected":[],"package":"nats","purl":"pkg:bitnami/nats","source":"BIT-nats-2020-28466"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"GO-2022-0855"},{"ecosystem":"Go","fixed":["2.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server","purl":null,"source":"GHSA-m4jx-6526-vvhm"},{"ecosystem":"Go","fixed":["2.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"GHSA-m4jx-6526-vvhm"},{"ecosystem":"Go","fixed":["2.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":null,"source":"GHSA-m4jx-6526-vvhm"},{"ecosystem":"Go","fixed":["2.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"GHSA-m4jx-6526-vvhm"},{"ecosystem":"Go","fixed":["2.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"GO-2022-0855"}],"prev":{"headline":"Remote Code Execution (RCE)","id":"CVE-2020-28464"},"products":["github.com/nats-io/nats-server/server"],"published":"2021-03-07","related":[{"cvss_score":9.8,"headline":"NATS nats-server allows directory traversal via unintended path to a management action","id":"CVE-2022-28357","kev_date_added":null,"published":"2023-09-19"},{"cvss_score":8.8,"headline":"NATS Server: Route API Auth Bypass","id":"CVE-2026-58253","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":8.8,"headline":"Incorrect Authorization in NATS nats-server","id":"CVE-2022-24450","kev_date_added":null,"published":"2022-02-08"},{"cvss_score":8.6,"headline":"NATS has MQTT plaintext password disclosure","id":"CVE-2026-33216","kev_date_added":null,"published":"2026-03-25"},{"cvss_score":7.7,"headline":"NATS Server: Remote crash via integer overflow in Connz pagination","id":"CVE-2026-58207","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":7.5,"headline":"NATS Server: MQTT partial CONNECT packets can exhaust pre-auth memory","id":"CVE-2026-58210","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":7.5,"headline":"NATS Server: Pre-auth server crash via double INFO in leafnode handshake","id":"CVE-2026-58250","kev_date_added":null,"published":"2026-07-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Untrusted accounts can crash the NATS server by exploiting service export/import cycles, causing a denial of service.","url":"https://insights.sbomify.com/CVE-2020-28466/"}