Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28996

MongoURI::connect can leak a DBClientInterface object on auth failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.2.12, 3.4.4, 3.5.6
    • Fix Version/s: 3.2.14, 3.4.5, 3.5.7
    • Component/s: Internal Client
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Platforms 2017-05-08
    • Linked BF Score:
      0

      Description

      If auth fails via an exception, the following code will leak a DBClientBase object:

      https://github.com/mongodb/mongo/blob/v3.4/src/mongo/client/mongo_uri_connect.cpp#L180-L188

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: