Advisory Published
Updated

REDHAT-BUG-1362553

First published: Tue Aug 02 2016(Updated: )

It was found that MongoDB creates a world-readable .dbshell history file in a user's directory: The mongodb client doesn't store authentication commands, but there's still information leakage, though, even if only about database and collection names, or data structure. As for data itself, the history could also contain sensitive information; for instance, if usernames for some other service were stored in a mongo collection, the history could contain lines like: db.users.find({user:"foo"}) or even: db.users.update({user:"foo"},{$set:{password:"OhComeOnNow"}}) Upstream bug (closed as "Works as Designed"): <a href="https://jira.mongodb.org/browse/SERVER-25335">https://jira.mongodb.org/browse/SERVER-25335</a> CVE request: <a href="http://seclists.org/oss-sec/2016/q3/199">http://seclists.org/oss-sec/2016/q3/199</a>

Affected SoftwareAffected VersionHow to fix
MongoDB

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-1362553?

    The severity of REDHAT-BUG-1362553 is considered low, as it involves information leakage but does not expose authentication credentials.

  • How do I fix REDHAT-BUG-1362553?

    To fix REDHAT-BUG-1362553, you can change the permissions of the .dbshell file to restrict access.

  • What risks are associated with REDHAT-BUG-1362553?

    The risks associated with REDHAT-BUG-1362553 include potential exposure of sensitive database and collection names.

  • Which versions of MongoDB are affected by REDHAT-BUG-1362553?

    REDHAT-BUG-1362553 affects all versions of MongoDB that create a world-readable .dbshell history file.

  • Is there a workaround for REDHAT-BUG-1362553?

    Yes, a workaround for REDHAT-BUG-1362553 is to manually set the file permissions of the .dbshell history file after its creation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203