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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 3.2.12, 3.4.4, 3.5.6
    • 3.2.14, 3.4.5, 3.5.7
    • Internal Client
    • None
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Platforms 2017-05-08
    • 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

            jonathan.reams@mongodb.com Jonathan Reams
            andrew.morrow@mongodb.com Andrew Morrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: