GHSA-43g5-2wr2-q7vj

Suggest an improvement
Source
https://github.com/advisories/GHSA-43g5-2wr2-q7vj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-43g5-2wr2-q7vj/GHSA-43g5-2wr2-q7vj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-43g5-2wr2-q7vj
Aliases
Published
2025-02-27T15:31:51Z
Modified
2025-02-27T17:57:01Z
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
Details

The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9. 

The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.

Database specific
{
    "cwe_ids":  [
        "CWE-74"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-02-27T17:15:42Z",
    "nvd_published_at":  "2025-02-27T13:15:11Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / mongosh

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.3.9

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-43g5-2wr2-q7vj/GHSA-43g5-2wr2-q7vj.json"