MongoDB Shell may be susceptible to control character Injection via shell output (MongoDB Inc mongosh)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- mongodb
- NVD status
- Analyzed
Description
The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions. The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker. This issue affects mongosh versions prior to 2.3.9
Weaknesses (CWE)
- CWE-150 — Improper Neutralization of Escape, Meta, or Control Sequences
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L | mongodb |
| CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L | NVD · cna@mongodb.com (Secondary) |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-r95j-4jvf-mrrw — MongoDB Shell may be susceptible to control character Injection via shell output
European references
- ENISA EUVD · EUVD-2025-5464
- GCVE · GCVE-0-2025-1693
CERT-FR advisories
- CERTFR-2025-AVI-0166 — Multiples vulnérabilités dans MongoDB · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*< 2.3.9
Affected products
| Product | Versions |
|---|---|
| MongoDB Inc · mongosh | affected 0 < 2.3.9 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |