{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-40906 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-40906 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-40906 is a critical vulnerability in MONGODB BSON::XS, published on 16 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40906 and fix it if it is affected.\n\nWhat it is: CVE-2025-40906 is a critical vulnerability in MONGODB BSON::XS, published on 16 May 2025. 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-2025-40906 in the wild and no public exploit code.\n\nAffected product: MONGODB BSON::XS. 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-2025-40906/ (Markdown: https://insights.sbomify.com/CVE-2025-40906/index.md)","id":"CVE-2025-40906","markdown":"https://insights.sbomify.com/CVE-2025-40906/index.md","name":"CVE-2025-40906","record":{"aliases":["DEBIAN-CVE-2025-40906","GHSA-5pww-x83q-7gjh","UBUNTU-CVE-2025-40906"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl BSON library","requires_auth":"none","summary":"BSON::XS bundles vulnerable libbson versions, exposing users to multiple security flaws in an unsupported library.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-1395","name":"Dependency on Vulnerable Third-Party Component"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-1104","name":"Use of Unmaintained Third Party Components"}],"description":"BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities.\n\nThose include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755. \n\nBSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities","id":"CVE-2025-40906","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"supply_chain","year":"2025"},"n_packages":0,"n_references":2,"next":{"headline":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library","id":"CVE-2025-40907"},"packages":[],"prev":{"headline":"WWW::OAuth 1.000 and earlier for Perl uses insecure rand() function for cryptographic functions","id":"CVE-2025-40905"},"products":["BSON::XS"],"published":"2025-05-16","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":"total"},"state":"PUBLISHED","updated":"2025-09-09","vendors":["MONGODB"]},"summary":"BSON::XS bundles vulnerable libbson versions, exposing users to multiple security flaws in an unsupported library.","url":"https://insights.sbomify.com/CVE-2025-40906/"}