Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | mongodb | 1:2.0.6-1+deb7u1 | DLA-588-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | mongodb | 1:2.6.10-0ubuntu1+esm2 | — |
| Ubuntu Pro 14.04 LTS | mongodb | 1:2.4.9-1ubuntu2+esm2 | — |
Advisories 1
- DLA-588-1 mongodb - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1362553
- [oss-security] 20160729 Re: CVE request: mongodb: world-readable .dbshell history file mailing-list
- https://github.com/mongodb/mongo/commit/035cf2afc04988b22cb67f4ebfd77e9b344cb6e0
- 92204 vdb-entry
- https://jira.mongodb.org/browse/SERVER-25335
- FEDORA-2016-9a8e2bbc04 vendor-advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832908
- [oss-security] 20160729 CVE request: mongodb: world-readable .dbshell history file mailing-list