CVE-2025-13507: CWE-1284 Improper Validation of Specified Quantity in Input in MongoDB Inc. MongoDB Server
Inconsistent object size validation in time series processing logic may result in later processing of oversized BSON documents leading to an assert failing and process termination. This issue impacts MongoDB Server v7.0 versions prior to 7.0.26, v8.0 versions prior to 8.0.16 and MongoDB server v8.2 versions prior to 8.2.1.
AI Analysis
Technical Summary
CVE-2025-13507 is a vulnerability identified in MongoDB Server's time series processing logic, specifically involving improper validation of specified quantities related to BSON document sizes. The issue stems from inconsistent object size validation, which allows oversized BSON documents to be processed beyond expected limits. This leads to an assertion failure within the MongoDB server process, causing it to terminate unexpectedly. The affected versions include MongoDB Server 7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.1. The vulnerability is classified under CWE-1284, which relates to improper validation of specified quantities. The CVSS v4.0 score is 7.1, indicating a high severity level. The attack vector is network-based (AV:N), requiring low attack complexity (AC:L), no privileges (PR:L) but some level of privileges is needed, no user interaction (UI:N), and no impact on confidentiality or integrity but high impact on availability (VA:H). This means an attacker can remotely cause a denial-of-service by sending specially crafted BSON documents that exploit the validation flaw. No known exploits have been reported in the wild yet, but the vulnerability poses a significant risk to MongoDB deployments, especially those handling time series data. The absence of patches at the time of reporting necessitates urgent attention from administrators to monitor and prepare for updates.
Potential Impact
The primary impact of CVE-2025-13507 is denial-of-service (DoS) through forced termination of the MongoDB server process. For European organizations, this can disrupt critical applications relying on MongoDB for time series data, such as financial services, energy management, telecommunications, and IoT analytics. Service outages could lead to operational downtime, loss of data availability, and potential cascading effects on dependent systems. Since MongoDB is widely used in enterprise environments, the vulnerability could affect cloud services, internal databases, and real-time monitoring systems. The lack of confidentiality or integrity impact reduces risks of data breaches but availability loss can still cause significant business and reputational damage. Organizations with regulatory obligations under GDPR must also consider the implications of service interruptions on compliance and customer trust.
Mitigation Recommendations
1. Apply official MongoDB patches as soon as they are released for versions 7.0.26, 8.0.16, and 8.2.1 or later. 2. Until patches are available, implement network-level controls to restrict access to MongoDB instances, limiting exposure to trusted IPs and internal networks only. 3. Monitor MongoDB logs and metrics for abnormal BSON document sizes or unusual time series data processing patterns that could indicate exploitation attempts. 4. Employ rate limiting and anomaly detection on incoming BSON documents to prevent oversized payloads from reaching the server. 5. Review and harden MongoDB configuration to disable or restrict time series features if not required. 6. Conduct regular backups and ensure recovery procedures are tested to minimize downtime impact. 7. Educate development and operations teams about the vulnerability and encourage prompt patch management practices. 8. Consider deploying Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) with custom rules to detect and block suspicious BSON payloads targeting this flaw.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Sweden
CVE-2025-13507: CWE-1284 Improper Validation of Specified Quantity in Input in MongoDB Inc. MongoDB Server
Description
Inconsistent object size validation in time series processing logic may result in later processing of oversized BSON documents leading to an assert failing and process termination. This issue impacts MongoDB Server v7.0 versions prior to 7.0.26, v8.0 versions prior to 8.0.16 and MongoDB server v8.2 versions prior to 8.2.1.
AI-Powered Analysis
Technical Analysis
CVE-2025-13507 is a vulnerability identified in MongoDB Server's time series processing logic, specifically involving improper validation of specified quantities related to BSON document sizes. The issue stems from inconsistent object size validation, which allows oversized BSON documents to be processed beyond expected limits. This leads to an assertion failure within the MongoDB server process, causing it to terminate unexpectedly. The affected versions include MongoDB Server 7.0 prior to 7.0.26, 8.0 prior to 8.0.16, and 8.2 prior to 8.2.1. The vulnerability is classified under CWE-1284, which relates to improper validation of specified quantities. The CVSS v4.0 score is 7.1, indicating a high severity level. The attack vector is network-based (AV:N), requiring low attack complexity (AC:L), no privileges (PR:L) but some level of privileges is needed, no user interaction (UI:N), and no impact on confidentiality or integrity but high impact on availability (VA:H). This means an attacker can remotely cause a denial-of-service by sending specially crafted BSON documents that exploit the validation flaw. No known exploits have been reported in the wild yet, but the vulnerability poses a significant risk to MongoDB deployments, especially those handling time series data. The absence of patches at the time of reporting necessitates urgent attention from administrators to monitor and prepare for updates.
Potential Impact
The primary impact of CVE-2025-13507 is denial-of-service (DoS) through forced termination of the MongoDB server process. For European organizations, this can disrupt critical applications relying on MongoDB for time series data, such as financial services, energy management, telecommunications, and IoT analytics. Service outages could lead to operational downtime, loss of data availability, and potential cascading effects on dependent systems. Since MongoDB is widely used in enterprise environments, the vulnerability could affect cloud services, internal databases, and real-time monitoring systems. The lack of confidentiality or integrity impact reduces risks of data breaches but availability loss can still cause significant business and reputational damage. Organizations with regulatory obligations under GDPR must also consider the implications of service interruptions on compliance and customer trust.
Mitigation Recommendations
1. Apply official MongoDB patches as soon as they are released for versions 7.0.26, 8.0.16, and 8.2.1 or later. 2. Until patches are available, implement network-level controls to restrict access to MongoDB instances, limiting exposure to trusted IPs and internal networks only. 3. Monitor MongoDB logs and metrics for abnormal BSON document sizes or unusual time series data processing patterns that could indicate exploitation attempts. 4. Employ rate limiting and anomaly detection on incoming BSON documents to prevent oversized payloads from reaching the server. 5. Review and harden MongoDB configuration to disable or restrict time series features if not required. 6. Conduct regular backups and ensure recovery procedures are tested to minimize downtime impact. 7. Educate development and operations teams about the vulnerability and encourage prompt patch management practices. 8. Consider deploying Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) with custom rules to detect and block suspicious BSON payloads targeting this flaw.
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-11-21T16:20:52.636Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6925392a441560fe7ee067dc
Added to database: 11/25/2025, 5:05:46 AM
Last enriched: 11/25/2025, 5:06:00 AM
Last updated: 11/25/2025, 6:43:44 AM
Views: 6
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.
Related Threats
CVE-2025-13644: CWE-617: Reachable Assertion in MongoDB Inc. MongoDB Server
MediumCVE-2025-12742: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Google Cloud Looker
HighCVE-2025-13643: CWE-862: Missing Authorization in MongoDB Inc. MongoDB Server
LowCVE-2025-12893: CWE-295 Improper Certificate Validation in MongoDB Inc. MongoDB Server
MediumCVE-2025-64730: Cross-site scripting (XSS) in Sony Corporation SNC-CX600W
MediumActions
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.