MongoDB Server: Improper Access Control
CVE-2024-7553 is a high-severity improper access control vulnerability in MongoDB Server from MongoDB, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 5.0.27, 6.0.16, 7.0.12 as the first without the flaw, so updating MongoDB Server to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.26% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update MongoDB Server to 5.0.27 or 6.0.16 or 7.0.12 or 7.3.3, whichever matches your release line, or a later version.
- Update MongoDB C Driver to 1.26.2 or a later version.
- Update MongoDB PHP Driver to 1.18.1 or a later version.
- Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| MongoDB | MongoDB Server | 5.0 up to, but not including, 5.0.27; 6.0 up to, but not including, 6.0.16; 7.0 up to, but not including, 7.0.12; 7.3 up to, but not including, 7.3.3 | 5.0.27, 6.0.16, 7.0.12, 7.3.3 |
| MongoDB | MongoDB C Driver | before 1.26.2 | 1.26.2 |
| MongoDB | MongoDB PHP Driver | before 1.18.1 | 1.18.1 |
| MongoDB | Mongodb | 5.0.0 up to, but not including, 5.0.27; 6.0.0 up to, but not including, 6.0.16; 7.0.0 up to, but not including, 7.0.12; 7.3.0 up to, but not including, 7.3.3 | 5.0.27, 6.0.16, 7.0.12, 7.3.3 |
| MongoDB | C Driver | before 1.26.2 | 1.26.2 |
| MongoDB | PHP Driver | before 1.18.1 | 1.18.1 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.3 | High | CNA (mongodb.com) |
| CVSS 3.1 | 7.8 | High | NVD |
Official description
Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underlying operating systems is Windows. This may result in the application executing arbitrary behaviour determined by the contents of untrusted files. This issue affects MongoDB Server v5.0 versions prior to 5.0.27, MongoDB Server v6.0 versions prior to 6.0.16, MongoDB Server v7.0 versions prior to 7.0.12, MongoDB Server v7.3 versions prior 7.3.3, MongoDB C Driver versions prior to 1.26.2 and MongoDB PHP Driver versions prior to 1.18.1. Required Configuration: Only environments with Windows as the underlying operating system is affected by this issue
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Access Control
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
How developers prevent this class of flaw
- Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
- Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Other vulnerabilities in MongoDB Server
- 7.5 High severity
- 8.8 High severity
- 7.1 High severity
- 10.0 Critical severity
- 8.4 High severity
- 7.2 High severity
Recent Improper Access Control vulnerabilities
- 9.8 Critical severity
- 7.8 High severity
- 7.8 High severity
- 8.8 High severity
- 7.5 High severity
- 7.1 High severity
Spotted an error? Tell us.