{"answers":{"affected":"7 open source packages ship an affected version, including github.com/nats-io/nats-server/v2, github.com/nats-io/nats-server and github.com/nats-io/nats-streaming-server.","exploited":"There is no known exploitation of CVE-2022-29946 in the wild and no public exploit code.","fix":"Upgrade github.com/nats-io/nats-server/v2 to 2.8.2 or later.","what":"CVE-2022-29946 is a medium-severity authentication bypass vulnerability in n/a, published on 11 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29946 and fix it if it is affected.\n\nWhat it is: CVE-2022-29946 is a medium-severity authentication bypass vulnerability in n/a, published on 11 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-29946 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.8.2\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.8.2\n- github.com/nats-io/nats-server/v2 (Go): affected all versions; fixed in 2.8.2\n- github.com/nats-io/nats-server (Go): affected all versions; no fix listed\n- github.com/nats-io/nats-streaming-server (Go): affected all versions; fixed in 0.24.6\n- github.com/nats-io/nats-streaming-server (Go): affected all versions; fixed in 0.24.6\n- github.com/nats-io/nats-streaming-server (Go): affected all versions; fixed in 0.24.6\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-2022-29946/ (Markdown: https://insights.sbomify.com/CVE-2022-29946/index.md)","id":"CVE-2022-29946","markdown":"https://insights.sbomify.com/CVE-2022-29946/index.md","name":"CVE-2022-29946","record":{"aliases":["DEBIAN-CVE-2022-29946","GHSA-2h2x-8hh2-mfq8","GO-2024-2980"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"NATS messaging server","requires_auth":"low_privilege","summary":"Remote attackers can bypass security restrictions to access denied subjects via queue subscriptions on wildcards in NATS Server.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[],"description":"NATS.io NATS Server before 2.8.2 and Streaming Server before 0.24.6 could allow a remote attacker to bypass security restrictions, caused by the failure to enforce negative user permissions in one scenario. By using a queue subscription on the wildcard, an attacker could exploit this vulnerability to allow denied subjects.","ecosystems":["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":"NATS Server and Streaming Server fails to enforce negative user permissions, may allow denied subjects","id":"CVE-2022-29946","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":7,"n_references":1,"next":{"headline":"Woodpecker allows cross-site scripting (XSS) via build logs","id":"CVE-2022-29947"},"packages":[{"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-2024-2980"},{"ecosystem":"Go","fixed":["2.8.2"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":null,"source":"GHSA-2h2x-8hh2-mfq8"},{"ecosystem":"Go","fixed":["2.8.2"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"GHSA-2h2x-8hh2-mfq8"},{"ecosystem":"Go","fixed":["2.8.2"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"GO-2024-2980"},{"ecosystem":"Go","fixed":["0.24.6"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-streaming-server","purl":null,"source":"GHSA-2h2x-8hh2-mfq8"},{"ecosystem":"Go","fixed":["0.24.6"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-streaming-server","purl":"pkg:golang/github.com/nats-io/nats-streaming-server","source":"GHSA-2h2x-8hh2-mfq8"},{"ecosystem":"Go","fixed":["0.24.6"],"introduced":["0"],"last_affected":[],"package":"github.com/nats-io/nats-streaming-server","purl":"pkg:golang/github.com/nats-io/nats-streaming-server","source":"GO-2024-2980"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2022-29945"},"products":["n/a"],"published":"2024-07-11","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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-30","vendors":["n/a"]},"summary":"Remote attackers can bypass security restrictions to access denied subjects via queue subscriptions on wildcards in NATS Server.","url":"https://insights.sbomify.com/CVE-2022-29946/"}