7.5
HIGH
CVE-2024-36116
Apache Maven Reposilite Path Traversal Vulnerability
Description

Reposilite is an open source, lightweight and easy-to-use repository manager for Maven based artifacts in JVM ecosystem. Reposilite provides support for JavaDocs files, which are archives that contain documentation for artifacts. Specifically, JavadocEndpoints.kt controller allows to expand the javadoc archive into the server's file system and return its content. The problem is in the way how the archives are expanded, specifically how the new filename is created. The `file.name` taken from the archive can contain path traversal characters, such as '/../../../anything.txt', so the resulting extraction path can be outside the target directory. If the archive is taken from an untrusted source, such as Maven Central or JitPack for example, an attacker can craft a special archive to overwrite any local file on Reposilite instance. This could lead to remote code execution, for example by placing a new plugin into the '$workspace$/plugins' directory. Alternatively, an attacker can overwrite the content of any other package. Note that the attacker can use its own malicious package from Maven Central to overwrite any other package on Reposilite. Reposilite has addressed this issue in version 3.5.12. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue was discovered and reported by the GitHub Security lab and is also tracked as GHSL-2024-073.

INFO

Published Date :

June 19, 2024, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 9:21 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

1.6
Affected Products

The following products are affected by CVE-2024-36116 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Dzikoysk reposilite
1 Reposilite reposilite

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-36116 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-36116 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Mar. 06, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-22
    Added CPE Configuration OR *cpe:2.3:a:reposilite:reposilite:*:*:*:*:*:*:*:* versions from (including) 3.3.0 from (excluding) 3.5.12
    Added Reference Type CVE: https://github.com/dzikoysk/reposilite/commit/848173738e4375482c70365db5cebae29f125eaa Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/dzikoysk/reposilite/commit/848173738e4375482c70365db5cebae29f125eaa Types: Patch
    Added Reference Type CVE: https://github.com/dzikoysk/reposilite/releases/tag/3.5.12 Types: Release Notes
    Added Reference Type GitHub, Inc.: https://github.com/dzikoysk/reposilite/releases/tag/3.5.12 Types: Release Notes
    Added Reference Type CVE: https://github.com/dzikoysk/reposilite/security/advisories/GHSA-frvj-cfq4-3228 Types: Exploit, Mitigation, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/dzikoysk/reposilite/security/advisories/GHSA-frvj-cfq4-3228 Types: Exploit, Mitigation, Vendor Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/dzikoysk/reposilite/commit/848173738e4375482c70365db5cebae29f125eaa
    Added Reference https://github.com/dzikoysk/reposilite/releases/tag/3.5.12
    Added Reference https://github.com/dzikoysk/reposilite/security/advisories/GHSA-frvj-cfq4-3228
  • CVE Received by [email protected]

    Jun. 19, 2024

    Action Type Old Value New Value
    Added Description Reposilite is an open source, lightweight and easy-to-use repository manager for Maven based artifacts in JVM ecosystem. Reposilite provides support for JavaDocs files, which are archives that contain documentation for artifacts. Specifically, JavadocEndpoints.kt controller allows to expand the javadoc archive into the server's file system and return its content. The problem is in the way how the archives are expanded, specifically how the new filename is created. The `file.name` taken from the archive can contain path traversal characters, such as '/../../../anything.txt', so the resulting extraction path can be outside the target directory. If the archive is taken from an untrusted source, such as Maven Central or JitPack for example, an attacker can craft a special archive to overwrite any local file on Reposilite instance. This could lead to remote code execution, for example by placing a new plugin into the '$workspace$/plugins' directory. Alternatively, an attacker can overwrite the content of any other package. Note that the attacker can use its own malicious package from Maven Central to overwrite any other package on Reposilite. Reposilite has addressed this issue in version 3.5.12. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue was discovered and reported by the GitHub Security lab and is also tracked as GHSL-2024-073.
    Added Reference GitHub, Inc. https://github.com/dzikoysk/reposilite/security/advisories/GHSA-frvj-cfq4-3228 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/dzikoysk/reposilite/commit/848173738e4375482c70365db5cebae29f125eaa [No types assigned]
    Added Reference GitHub, Inc. https://github.com/dzikoysk/reposilite/releases/tag/3.5.12 [No types assigned]
    Added CWE GitHub, Inc. CWE-22
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-36116 is associated with the following CWEs:

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability