CVE-2025-14345: CWE-667 Improper Locking in MongoDB Inc. MongoDB Server
A post-authentication flaw in the network two-phase commit protocol used for cross-shard transactions in MongoDB Server may lead to logical data inconsistencies under specific conditions which are not predictable and exist for a very short period of time. This error can cause the transaction coordination logic to misinterpret the transaction as committed, resulting in inconsistent state on those shards. This may lead to low integrity and availability impact. This issue impacts MongoDB Server v8.0 versions prior to 8.0.16, MongoDB Server v7.0 versions prior to 7.0.26 and MongoDB server v8.2 versions prior to 8.2.2.
AI Analysis
Technical Summary
CVE-2025-14345 is a vulnerability identified in MongoDB Server, affecting versions 7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.2. The issue arises from improper locking (CWE-667) within the network two-phase commit protocol that MongoDB uses to manage cross-shard transactions. This protocol ensures atomicity and consistency when transactions span multiple shards in a distributed database environment. The flaw manifests post-authentication and can cause the transaction coordination logic to misinterpret the transaction state, erroneously marking transactions as committed even when they are not fully finalized across all shards. This leads to transient logical inconsistencies in data, which may result in low-level integrity violations and potential availability impacts if the inconsistent state affects application operations. The vulnerability has a CVSS 3.1 base score of 4.2, reflecting medium severity, with an attack vector over the network, requiring low privileges, high attack complexity, and no user interaction. The flaw is subtle and timing-dependent, making exploitation non-trivial but possible under specific conditions. No public exploits have been reported yet. The vulnerability is particularly relevant for organizations relying on MongoDB's sharded cluster deployments for critical transactional workloads, where data consistency and availability are paramount. The absence of patches in the provided data suggests that organizations should monitor vendor advisories closely and prepare for timely updates.
Potential Impact
For European organizations, the impact of CVE-2025-14345 can be significant in environments where MongoDB is used as a distributed database with cross-shard transactions, such as in financial services, e-commerce platforms, and large-scale SaaS providers. Logical inconsistencies in transaction states can lead to data integrity issues, potentially causing incorrect business decisions, financial discrepancies, or corrupted records. Although the availability impact is low, transient inconsistent states may disrupt application workflows or require costly data reconciliation efforts. The post-authentication nature means that attackers or malicious insiders with some level of access could exploit this flaw to induce inconsistencies, undermining trust in the database's transactional guarantees. Given the reliance on MongoDB in critical infrastructure and data-driven applications, even low-level integrity issues can cascade into operational risks and compliance challenges under regulations like GDPR, which mandate data accuracy and integrity. The medium severity score indicates that while the vulnerability is not immediately critical, it warrants prompt attention to prevent exploitation and maintain data reliability.
Mitigation Recommendations
European organizations should implement the following specific mitigation steps: 1) Immediately inventory MongoDB deployments to identify affected versions (7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.2). 2) Prioritize patching to the latest MongoDB versions where the flaw is fixed as soon as vendor patches become available. 3) Until patches are applied, restrict access to MongoDB instances to trusted users only, minimizing the risk of post-authentication exploitation. 4) Review and tighten authentication and authorization controls to limit privileges that can initiate cross-shard transactions. 5) Monitor transaction logs and application behavior for anomalies indicative of inconsistent transaction states. 6) Implement additional application-level consistency checks or compensating transactions to detect and correct inconsistencies. 7) Engage in thorough testing of transaction workflows post-patching to ensure integrity is restored. 8) Maintain up-to-date backups and disaster recovery plans to recover from potential data corruption. These steps go beyond generic advice by focusing on the specific nature of the vulnerability and its operational context.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Italy, Spain
CVE-2025-14345: CWE-667 Improper Locking in MongoDB Inc. MongoDB Server
Description
A post-authentication flaw in the network two-phase commit protocol used for cross-shard transactions in MongoDB Server may lead to logical data inconsistencies under specific conditions which are not predictable and exist for a very short period of time. This error can cause the transaction coordination logic to misinterpret the transaction as committed, resulting in inconsistent state on those shards. This may lead to low integrity and availability impact. This issue impacts MongoDB Server v8.0 versions prior to 8.0.16, MongoDB Server v7.0 versions prior to 7.0.26 and MongoDB server v8.2 versions prior to 8.2.2.
AI-Powered Analysis
Technical Analysis
CVE-2025-14345 is a vulnerability identified in MongoDB Server, affecting versions 7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.2. The issue arises from improper locking (CWE-667) within the network two-phase commit protocol that MongoDB uses to manage cross-shard transactions. This protocol ensures atomicity and consistency when transactions span multiple shards in a distributed database environment. The flaw manifests post-authentication and can cause the transaction coordination logic to misinterpret the transaction state, erroneously marking transactions as committed even when they are not fully finalized across all shards. This leads to transient logical inconsistencies in data, which may result in low-level integrity violations and potential availability impacts if the inconsistent state affects application operations. The vulnerability has a CVSS 3.1 base score of 4.2, reflecting medium severity, with an attack vector over the network, requiring low privileges, high attack complexity, and no user interaction. The flaw is subtle and timing-dependent, making exploitation non-trivial but possible under specific conditions. No public exploits have been reported yet. The vulnerability is particularly relevant for organizations relying on MongoDB's sharded cluster deployments for critical transactional workloads, where data consistency and availability are paramount. The absence of patches in the provided data suggests that organizations should monitor vendor advisories closely and prepare for timely updates.
Potential Impact
For European organizations, the impact of CVE-2025-14345 can be significant in environments where MongoDB is used as a distributed database with cross-shard transactions, such as in financial services, e-commerce platforms, and large-scale SaaS providers. Logical inconsistencies in transaction states can lead to data integrity issues, potentially causing incorrect business decisions, financial discrepancies, or corrupted records. Although the availability impact is low, transient inconsistent states may disrupt application workflows or require costly data reconciliation efforts. The post-authentication nature means that attackers or malicious insiders with some level of access could exploit this flaw to induce inconsistencies, undermining trust in the database's transactional guarantees. Given the reliance on MongoDB in critical infrastructure and data-driven applications, even low-level integrity issues can cascade into operational risks and compliance challenges under regulations like GDPR, which mandate data accuracy and integrity. The medium severity score indicates that while the vulnerability is not immediately critical, it warrants prompt attention to prevent exploitation and maintain data reliability.
Mitigation Recommendations
European organizations should implement the following specific mitigation steps: 1) Immediately inventory MongoDB deployments to identify affected versions (7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.2). 2) Prioritize patching to the latest MongoDB versions where the flaw is fixed as soon as vendor patches become available. 3) Until patches are applied, restrict access to MongoDB instances to trusted users only, minimizing the risk of post-authentication exploitation. 4) Review and tighten authentication and authorization controls to limit privileges that can initiate cross-shard transactions. 5) Monitor transaction logs and application behavior for anomalies indicative of inconsistent transaction states. 6) Implement additional application-level consistency checks or compensating transactions to detect and correct inconsistencies. 7) Engage in thorough testing of transaction workflows post-patching to ensure integrity is restored. 8) Maintain up-to-date backups and disaster recovery plans to recover from potential data corruption. These steps go beyond generic advice by focusing on the specific nature of the vulnerability and its operational context.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2025-12-09T14:49:42.517Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69383abe29cea75c35b76e5f
Added to database: 12/9/2025, 3:05:34 PM
Last enriched: 12/9/2025, 3:19:27 PM
Last updated: 12/10/2025, 4:12:29 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.