{"answers":{"affected":"3 open source packages ship an affected version, including github.com/mongodb/mongo-tools. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-7924 in the wild and no public exploit code.","fix":"Upgrade github.com/mongodb/mongo-tools to a fixed version for your release line: 0.0.0-20200819165540-8c1800b51550 or 100.2.0.","what":"CVE-2020-7924 is a medium-severity vulnerability in MongoDB Database Tools, published on 12 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-7924 and fix it if it is affected.\n\nWhat it is: CVE-2020-7924 is a medium-severity vulnerability in MongoDB Database Tools, published on 12 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-7924 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/mongodb/mongo-tools (Go): affected all versions; fixed in 0.0.0-20200819165540-8c1800b51550\n- github.com/mongodb/mongo-tools (Go): affected from 100.0.0; fixed in 100.2.0\n- github.com/mongodb/mongo-tools (Go): affected from 100.0.0; fixed in 100.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-7924/ (Markdown: https://insights.sbomify.com/CVE-2020-7924/index.md)","id":"CVE-2020-7924","markdown":"https://insights.sbomify.com/CVE-2020-7924/index.md","name":"CVE-2020-7924","record":{"aliases":["GHSA-6cwm-wm82-hgrw","GO-2024-2550"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"MongoDB Database Tools","requires_auth":"none","summary":"Attackers can bypass TLS certificate validation in MongoDB tools by using a specific command line parameter, enabling man-in-the-middle attacks.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"database_tools","vendor":"mongodb"},{"product":"mongomirror","vendor":"mongodb"}],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"Usage of specific command line parameter in MongoDB Tools which was originally intended to just skip hostname checks, may result in MongoDB skipping all certificate validation. This may result in accepting invalid certificates.This issue affects: MongoDB Inc. MongoDB Database Tools 3.6 versions later than 3.6.5; 3.6 versions prior to 3.6.21; 4.0 versions prior to 4.0.21; 4.2 versions prior to 4.2.11; 100 versions prior to 100.2.0. MongoDB Inc. Mongomirror 0 versions later than 0.6.0.","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":"Specific command line parameter might result in accepting invalid certificate","id":"CVE-2020-7924","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2020"},"n_packages":3,"n_references":1,"next":{"headline":"Denial of Service when processing malformed Role names","id":"CVE-2020-7925"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20200819165540-8c1800b51550"],"introduced":["0"],"last_affected":[],"package":"github.com/mongodb/mongo-tools","purl":"pkg:golang/github.com/mongodb/mongo-tools","source":"GO-2024-2550"},{"ecosystem":"Go","fixed":["100.2.0"],"introduced":["100.0.0"],"last_affected":[],"package":"github.com/mongodb/mongo-tools","purl":null,"source":"GHSA-6cwm-wm82-hgrw"},{"ecosystem":"Go","fixed":["100.2.0"],"introduced":["100.0.0"],"last_affected":[],"package":"github.com/mongodb/mongo-tools","purl":"pkg:golang/github.com/mongodb/mongo-tools","source":"GHSA-6cwm-wm82-hgrw"}],"prev":{"headline":"Specific GeoQuery can cause DoS against MongoDB Server","id":"CVE-2020-7923"},"products":["MongoDB Database Tools","Mongomirror"],"published":"2021-04-12","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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-16","vendors":["MongoDB Inc."]},"summary":"Attackers can bypass TLS certificate validation in MongoDB tools by using a specific command line parameter, enabling man-in-the-middle attacks.","url":"https://insights.sbomify.com/CVE-2020-7924/"}