SiYuan
cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*
- < 3.5.0
A Zip Slip vulnerability has been identified in SiYuan personal knowledge management software, specifically in versions through 0.0.0-20251202123337-6ef83b42c7ce. The issue resides in the 'importZipMd' function, where an authenticated user can overwrite files on the system. This vulnerability can escalate to full code execution under certain conditions, such as when the 'entrypoint.sh' file is overwritten in the official Docker image, allowing the executed code to be executed remotely.
Exploitation of this vulnerability allows for arbitrary file overwriting, with the potential for remote code execution in specific scenarios, such as when overwriting the 'entrypoint.sh' file in the official Docker image.
To reproduce this vulnerability, an authenticated user must access the import functionality within notes. The user can upload a crafted ZIP file that exploits the Zip Slip vulnerability by overwriting arbitrary files on the system. If the 'entrypoint.sh' file is targeted, the overwritten code will be executed after a container restart, leading to remote code execution.
Users are advised to update to SiYuan version 3.5.0, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.