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.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.6
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-36116
.
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
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:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-36116
weaknesses.