CVE-2016-6494: Infoleak

Published Jul 29, 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"):

https://jira.mongodb.org/browse/SERVER-25335

CVE request:

http://seclists.org/oss-sec/2016/q3/199

Other sources

The client in MongoDB uses world-readable permissions on .dbshell history files, which might allow local users to obtain sensitive information by reading these files.

MITRE

Affected Software

8 affected componentsFixes available
debian/mongodb<=1:2.4.10-5
1:2.6.12-31:3.2.11-11:2.4.10-5+deb8u1
debian/2.0.6-1<=undefined
debian/2.4.10-5<=undefined
debian/mongodb
MongoDB MongoDB<3.0.15
MongoDB MongoDB>=3.2<3.2.14
MongoDB MongoDB>=3.3<3.3.14
fedoraproject fedora=25

Event History

Aug 2, 2016
Data Sourced
via Red Hat·01:39 PM
DescriptionSeverityAffected Software
Oct 3, 2016
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2016-6494?

CVE-2016-6494 is rated as a medium severity vulnerability due to potential information leakage from a world-readable .dbshell history file.

2

How do I fix CVE-2016-6494?

To fix CVE-2016-6494, you should upgrade to MongoDB versions 2.6.12-3, 3.2.11-1, or 2.4.10-5+deb8u1 where the issue is resolved.

3

Who is affected by CVE-2016-6494?

CVE-2016-6494 affects users of specific MongoDB versions that create world-readable .dbshell history files, potentially exposing sensitive information.

4

What versions of MongoDB are vulnerable to CVE-2016-6494?

MongoDB versions prior to 3.0.15 are vulnerable to CVE-2016-6494, particularly those in the 2.x series.

5

Is there a workaround for CVE-2016-6494 until I can upgrade?

A temporary workaround for CVE-2016-6494 is to change the permissions of the .dbshell file to restrict access, though upgrading is recommended.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203