{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-6383 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-6383 is a medium-severity memory corruption vulnerability in MongoDB Inc libbson, 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-6383 and fix it if it is affected.\n\nWhat it is: CVE-2024-6383 is a medium-severity memory corruption vulnerability in MongoDB Inc libbson, published on 3 Jul 2024. 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-2024-6383 in the wild and no public exploit code.\n\nAffected product: MongoDB Inc libbson. 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-2024-6383/ (Markdown: https://insights.sbomify.com/CVE-2024-6383/index.md)","id":"CVE-2024-6383","markdown":"https://insights.sbomify.com/CVE-2024-6383/index.md","name":"CVE-2024-6383","record":{"aliases":["DEBIAN-CVE-2024-6383","GHSA-w25p-2jj3-j5vr","OESA-2024-1880","UBUNTU-CVE-2024-6383"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"MongoDB C Driver","requires_auth":"none","summary":"A buffer overflow in the MongoDB C Driver's bson_string_append function allows attackers to corrupt heap memory, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1","ecosystems":[],"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":"MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow","id":"CVE-2024-6383","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Backup files may be downloaded by underprivileged users in MongoDB Enterprise Server","id":"CVE-2024-6384"},"packages":[],"prev":{"headline":"Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands.","id":"CVE-2024-6382"},"products":["libbson"],"published":"2024-07-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["MongoDB Inc"]},"summary":"A buffer overflow in the MongoDB C Driver's bson_string_append function allows attackers to corrupt heap memory, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2024-6383/"}