Improve mongobleed checks - #21275
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the CVE-2025-14847 “Mongobleed” MongoDB scanner by making the framework check workflow more accurate, reducing false positives against non-MongoDB services, and tightening zlib/compression handling.
Changes:
- Replaces the custom
ACTION=CHECKflow with a standard scannercheck_hostimplementation returningExploit::CheckCodevalues. - Improves compressor detection by negotiating
hello/isMasterwith a BSON array (and adds BSON array building support). - Adds additional wire-protocol validation/sanity checks to reduce false positives and improve robustness.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| modules/auxiliary/scanner/mongodb/cve_2025_14847_mongobleed.rb | Adds standard check_host, strengthens protocol validation, and refines compression detection logic (zlib-focused). |
| documentation/modules/auxiliary/scanner/mongodb/cve_2025_14847_mongobleed.md | Updates usage docs to reflect the new check workflow and revised behavior/output. |
adfoster-r7
force-pushed
the
improve-mongobleed-checks
branch
from
April 13, 2026 12:47
64980f6 to
ee2c0df
Compare
Added multiple improvements to the
cve_2025_14847_mongobleed.rbmodule, such as adding new a dedicatedcheckmethod,improved compression support detection as only zlib can be exploited, and resolving other false positivesVerification
Check vuln
Network issues now bubbled up correctly:
Check Not vuln - no zlib compression enabled
Check not vuln - patched