Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-2386

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versions prior to 3.6.13 and MongoDB Server v3.4 versions prior to 3.4.22. Workaround: After deleting one or more users, restart any nodes which may have had active user authorization sessions. Refrain from creating user accounts with the same name as previously deleted accounts.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-2386
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:06 UTC · Revision 1

Source evidence

CVE-2019-2386

core-osv · Original source

Published 6 Aug 2019, 19:15 UTC

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versions prior to 3.6.13 and MongoDB Server v3.4 versions prior to 3.4.22. Workaround: After deleting one or more users, restart any nodes which may have had active user authorization sessions. Refrain from creating user accounts with the same name as previously deleted accounts.

osv:CVE-2019-2386
Complete source record
{
  "id": "2cbd7138e6278500e5035b88d8777ca6e3d771e8a1472b32b2c4372c9cdcb8ba",
  "url": "https://osv.dev/vulnerability/CVE-2019-2386",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-2386",
    "summary": "After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versions prior to 3.6.13 and MongoDB Server v3.4 versions prior to 3.4.22. Workaround: After deleting one or more users, restart any nodes which may have had active user authorization sessions. Refrain from creating user accounts with the same name as previously deleted accounts.",
    "evidence": "osv:CVE-2019-2386",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-2386",
      "aliases": [
        "CVE-2019-2386"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb/mongo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f4240c60f005be757399042dc12f6addbc3170c1"
                },
                {
                  "fixed": "aa313e18da568c4afd120f99e56d2da7d7fcdd58"
                },
                {
                  "introduced": "a57d8e71e6998a2d0afde7edc11bd23e5661c915"
                },
                {
                  "fixed": "db3c76679b7a3d9b443a0e1b3e45ed02b88c539f"
                },
                {
                  "introduced": "3b07af3d4f471ae89e8186d33bbb1d5259597d51"
                },
                {
                  "fixed": "fc525e2d9b0e4bceff5c2201457e564362909765"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "fixed": "3.4.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.6.0"
                      },
                      {
                        "fixed": "3.6.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "r3.4.21-rc0",
            "r3.4.21",
            "r3.6.13-rc0",
            "r3.6.12-rc1",
            "r3.6.12",
            "r4.0.8-rc0",
            "r4.0.8",
            "r3.6.12-rc0",
            "r4.0.7-rc1",
            "r4.0.7",
            "r4.0.7-rc0",
            "r3.4.20-rc0",
            "r3.4.20",
            "r3.6.11-rc2",
            "r3.6.11",
            "r3.6.11-rc1",
            "r3.6.11-rc0",
            "r4.0.6-rc1",
            "r4.0.6",
            "r3.4.19-rc0",
            "r3.4.19",
            "r4.0.6-rc0",
            "r3.6.9-rc0",
            "r3.6.9",
            "r3.6.10-rc1",
            "r3.6.10",
            "r3.6.10-rc0",
            "r4.0.5-rc1",
            "r4.0.5",
            "r4.0.5-rc0",
            "r4.0.4-rc2",
            "r4.0.4",
            "r4.0.4-rc1",
            "r4.0.4-rc0",
            "r3.4.18-rc0",
            "r3.4.18",
            "r4.0.3-rc0",
            "r4.0.3",
            "r3.6.8-rc1",
            "r3.6.8",
            "r3.6.8-rc0",
            "r3.4.17-rc0",
            "r3.4.17",
            "r4.0.2-rc0",
            "r4.0.2",
            "r3.6.7-rc1",
            "r3.6.7",
            "r3.6.7-rc0",
            "r4.0.1-rc1",
            "r4.0.1",
            "r4.0.1-rc0",
            "r3.6.6-rc0",
            "r3.6.6",
            "r3.4.16-rc0",
            "r3.4.16",
            "r4.0.0",
            "r3.4.15-rc0",
            "r3.4.15",
            "r3.6.5-rc0",
            "r3.6.5",
            "r3.6.4-rc0",
            "r3.6.4",
            "r3.4.14-rc0",
            "r3.4.14",
            "r3.6.3-rc1",
            "r3.6.3",
            "r3.6.3-rc0",
            "r3.4.13",
            "r3.4.12-rc0",
            "r3.4.12",
            "r3.4.11-rc0",
            "r3.4.11",
            "r3.6.2-rc0",
            "r3.6.2",
            "r3.6.1-rc1",
            "r3.6.1",
            "r3.6.1-rc0",
            "r3.6.0",
            "r3.4.10-rc0",
            "r3.4.10",
            "r3.4.9-rc0",
            "r3.4.9",
            "r3.4.8-rc1",
            "r3.4.8",
            "r3.4.8-rc0",
            "r3.4.7-rc0",
            "r3.4.7",
            "r3.4.6-rc0",
            "r3.4.6",
            "r3.4.5-rc4",
            "r3.4.5",
            "r3.4.5-rc3",
            "r3.4.5-rc2",
            "r3.4.5-rc1",
            "r3.4.5-rc0",
            "r3.4.4",
            "r3.4.4-rc0",
            "r3.4.3-rc2",
            "r3.4.3",
            "r3.4.3-rc1",
            "r3.4.3-rc0",
            "r3.4.2",
            "r3.4.2-rc0",
            "r3.4.1-rc0",
            "r3.4.1",
            "r3.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-2386.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-2386-708ef0e6",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "175603822783044971019641112208146333316",
                    "175970064386882756922064184835545998872",
                    "280890145546106279720669451529096251243",
                    "177145452068869207173493918846944381727",
                    "313900252086444751672369110289130781353",
                    "179223562212308464752110380330641384963"
                  ]
                },
                "source": "https://github.com/mongodb/mongo/commit/db3c76679b7a3d9b443a0e1b3e45ed02b88c539f",
                "target": {
                  "file": "src/mongo/s/write_ops/batch_write_op.cpp"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-2386-88f2f84c",
                "digest": {
                  "length": 74,
                  "function_hash": "151727694202851320526834926440811425131"
                },
                "source": "https://github.com/mongodb/mongo/commit/db3c76679b7a3d9b443a0e1b3e45ed02b88c539f",
                "target": {
                  "file": "src/mongo/s/write_ops/batch_write_op.cpp",
                  "function": "BatchWriteOp::~BatchWriteOp"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-2386-f4e9f373",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "340004267183464091978939854210276221300",
                    "142313603819071205760085014427835771346",
                    "204488877892569140033225998406769054398",
                    "38671843303958937785731461894518042107"
                  ]
                },
                "source": "https://github.com/mongodb/mongo/commit/db3c76679b7a3d9b443a0e1b3e45ed02b88c539f",
                "target": {
                  "file": "src/mongo/s/write_ops/batch_write_op.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:07:06Z"
          }
        }
      ],
      "modified": "2026-10-24T14:07:06.855316904Z",
      "provider": "osv",
      "references": [
        "https://jira.mongodb.org/browse/SERVER-38984",
        "https://www.talosintelligence.com/vulnerability_reports/TALOS-2019-0829"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "mongodb:mongodb",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.4.0"
                  },
                  {
                    "fixed": "3.4.22"
                  },
                  {
                    "introduced": "3.6.0"
                  },
                  {
                    "fixed": "3.6.13"
                  },
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "4.0.9"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-2386",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443090,
  "published_at": "2019-08-06T19:15:13.613+00:00"
}