{"answers":{"affected":"4 open source packages ship an affected version, including mongodb/mongodb. It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-81525 in the wild and no public exploit code.","fix":"Upgrade mongodb/mongodb to a fixed version for your release line: 1.21.4 or 2.4.1.","what":"CVE-2026-81525 is a high-severity vulnerability in MongoDB PHP Extension, published on 27 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-81525 and fix it if it is affected.\n\nWhat it is: CVE-2026-81525 is a high-severity vulnerability in MongoDB PHP Extension, published on 27 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-81525 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mongodb/mongodb (Packagist): affected all versions; fixed in 1.21.4\n- mongodb/mongodb (Packagist): affected all versions; fixed in 1.21.4\n- mongodb/mongodb (Packagist): affected from 2.0.0; fixed in 2.4.1\n- mongodb/mongodb (Packagist): affected from 2.0.0; fixed in 2.4.1\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-2026-81525/ (Markdown: https://insights.sbomify.com/CVE-2026-81525/index.md)","id":"CVE-2026-81525","markdown":"https://insights.sbomify.com/CVE-2026-81525/index.md","name":"CVE-2026-81525","record":{"aliases":["CLSA-2026-1790259386","DEBIAN-CVE-2026-81525","GHSA-65fr-j4p9-vc33","UBUNTU-CVE-2026-81525"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"MongoDB PHP Driver","requires_auth":"low_privilege","summary":"Attackers can redirect database operations to unintended namespaces via injection in PHP driver namespace strings, risking cross-tenant data access.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"php_driver","vendor":"mongodb"},{"product":"php_library","vendor":"mongodb"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"}],"description":"The MongoDB client library for PHP does not sufficiently sanitize special elements in application-supplied namespace identifiers before using them to construct the target namespace for database operations. An application that incorporates untrusted text into these identifiers may have operations silently directed at a different storage location than the one the application intended.","ecosystems":["Packagist"],"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":"Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver","id":"CVE-2026-81525","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"other","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"Cross-database write redirection via unvalidated dotted database name in bulk write namespaces","id":"CVE-2026-81526"},"packages":[{"ecosystem":"Packagist","fixed":["1.21.4"],"introduced":["0"],"last_affected":[],"package":"mongodb/mongodb","purl":null,"source":"GHSA-65fr-j4p9-vc33"},{"ecosystem":"Packagist","fixed":["1.21.4"],"introduced":["0"],"last_affected":[],"package":"mongodb/mongodb","purl":"pkg:composer/mongodb/mongodb","source":"GHSA-65fr-j4p9-vc33"},{"ecosystem":"Packagist","fixed":["2.4.1"],"introduced":["2.0.0"],"last_affected":[],"package":"mongodb/mongodb","purl":null,"source":"GHSA-65fr-j4p9-vc33"},{"ecosystem":"Packagist","fixed":["2.4.1"],"introduced":["2.0.0"],"last_affected":[],"package":"mongodb/mongodb","purl":"pkg:composer/mongodb/mongodb","source":"GHSA-65fr-j4p9-vc33"}],"prev":{"headline":"Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C Driver","id":"CVE-2026-81524"},"products":["PHP Extension","PHP Library"],"published":"2026-08-27","related":[{"cvss_score":6.9,"headline":"Heap out-of-bounds read via corrupt nested BSON in field path error message","id":"CVE-2026-84968","kev_date_added":null,"published":"2026-09-03"},{"cvss_score":6.3,"headline":"Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver","id":"CVE-2026-106436","kev_date_added":null,"published":"2026-10-08"},{"cvss_score":6,"headline":"PHP Stack Exhaustion","id":"CVE-2026-6811","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":2,"headline":"Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver","id":"CVE-2026-106432","kev_date_added":null,"published":"2026-10-08"}],"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":"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":"total"},"state":"PUBLISHED","updated":"2026-08-28","vendors":["MongoDB"]},"summary":"Attackers can redirect database operations to unintended namespaces via injection in PHP driver namespace strings, risking cross-tenant data access.","url":"https://insights.sbomify.com/CVE-2026-81525/"}