CVE-2026-81525

8.1

MongoDB · PHP Library and PHP Extension

The MongoDB PHP client library and extension fail to sanitize namespace identifiers, allowing attackers with low privileges to redirect database operations to unintended storage locations.

Executive summary

A critical vulnerability in the MongoDB PHP library and extension allows authenticated attackers to manipulate database operation targets, posing a significant risk to data integrity.

Vulnerability

This is an improper neutralization of special elements in data query logic (CWE-943) where application-supplied namespace identifiers are not sanitized. The vulnerability requires the attacker to have low privileges (authenticated) to influence the target namespace of database operations.

Business impact

The ability to silently redirect database operations to unauthorized storage locations can result in severe data corruption, unauthorized data access, or the bypassing of security controls. With a CVSS score of 8.1, this high-severity flaw represents a substantial threat to the confidentiality and integrity of backend database systems, potentially leading to significant operational disruption and loss of sensitive information.

Remediation

Immediate Action: Update the MongoDB PHP Library to version 1.21.4 or 2.4.1, and update the MongoDB PHP Extension to version 1.21.6 or 2.4.1.

Proactive Monitoring: Review application database logs for unusual query patterns or operations directed at unexpected namespaces or collections.

Compensating Controls: Implement strict input validation on all user-supplied data used in database queries to ensure that namespace identifiers conform to expected patterns.

Exploitation status

Public Exploit Available: No (exploit_available: false)

Analyst recommendation

Given the potential for unauthorized data redirection, it is imperative that organizations using the affected MongoDB PHP components upgrade to the patched versions immediately. Administrators should prioritize identifying instances of this library within their application environments and schedule maintenance windows to apply the necessary updates to maintain system integrity.

More MongoDB CVEs

Sources