{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-20334 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-20334 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-20334 is a medium-severity vulnerability in MongoDB Compass, published on 6 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-20334 and fix it if it is affected.\n\nWhat it is: CVE-2021-20334 is a medium-severity vulnerability in MongoDB Compass, published on 6 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-20334 in the wild and no public exploit code.\n\nAffected product: MongoDB Compass. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2021-20334/ (Markdown: https://insights.sbomify.com/CVE-2021-20334/index.md)","id":"CVE-2021-20334","markdown":"https://insights.sbomify.com/CVE-2021-20334/index.md","name":"CVE-2021-20334","record":{"aliases":["GHSA-9567-49v2-4jq6"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"MongoDB Compass","requires_auth":"low_privilege","summary":"A local attacker can execute arbitrary code with the privileges of the user running MongoDB Compass on Windows.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"compass","vendor":"mongodb"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"A malicious 3rd party with local access to the Windows machine where MongoDB Compass is installed can execute arbitrary software with the privileges of the user who is running MongoDB Compass. This issue affects: MongoDB Inc. MongoDB Compass 1.x version 1.3.0 on Windows and later versions; 1.x versions prior to 1.25.0 on Windows.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Local privilege escalation in MongoDB Compass for Windows","id":"CVE-2021-20334","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"SSL may be unexpectedly disabled during upgrade of multiple-server MongoDB Ops Manager","id":"CVE-2021-20335"},"packages":[],"prev":{"headline":"Server log entry spoofing via newline injection","id":"CVE-2021-20333"},"products":["MongoDB Compass"],"published":"2021-04-06","related":[{"cvss_score":8.4,"headline":"Command injection in MongoDB Compass","id":"CVE-2026-14881","kev_date_added":null,"published":"2026-07-22"},{"cvss_score":7.5,"headline":"MongoDB Compass may be susceptible to local privilege escalation in Windows","id":"CVE-2025-1755","kev_date_added":null,"published":"2025-02-27"},{"cvss_score":7.1,"headline":"Insufficient validation of external input in Compass may enable MITM attacks","id":"CVE-2024-3371","kev_date_added":null,"published":"2024-04-24"},{"cvss_score":7,"headline":"ejson shell parser in MongoDB Compass maybe bypassed","id":"CVE-2024-6376","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":5.3,"headline":"Prototype pollution in csv parsing","id":"CVE-2026-9101","kev_date_added":null,"published":"2026-05-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["MongoDB Inc."]},"summary":"A local attacker can execute arbitrary code with the privileges of the user running MongoDB Compass on Windows.","url":"https://insights.sbomify.com/CVE-2021-20334/"}