CVE-2024-36116

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-36116
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36116.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-36116
Aliases
Published
2024-06-19T18:15:10Z
Modified
2024-10-08T04:14:27.473029Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/dzikoysk/reposilite

Affected ranges

Type
GIT
Repo
https://github.com/dzikoysk/reposilite
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

3.*

3.0.0
3.0.0-next
3.0.0-rc.3
3.0.0-rc.4
3.0.0-rc.4-next
3.0.1
3.0.1-next
3.0.2
3.0.2-next
3.0.3
3.0.4
3.0.4-next
3.1.0
3.1.0-next
3.1.1
3.1.1-next
3.2.0
3.2.0-next
3.2.1
3.2.1-next
3.2.2
3.2.2-next
3.2.3
3.2.3-next
3.2.4
3.2.4-next
3.2.5
3.2.5-next
3.2.6
3.2.6-next
3.2.7
3.2.7-next
3.3.0
3.3.0-next
3.3.1
3.3.1-next
3.3.2
3.3.2-next
3.4.0
3.4.0-next
3.4.1
3.4.1-next
3.4.10
3.4.10-next
3.4.2
3.4.2-next
3.4.3
3.4.3-next
3.4.4
3.4.4-next
3.4.5
3.4.5-next
3.4.6
3.4.6-next
3.4.7
3.4.7-next
3.4.8
3.4.8-next
3.4.9
3.4.9-next
3.5.0
3.5.0-next
3.5.1
3.5.1-next
3.5.10
3.5.10-next
3.5.11
3.5.11-next
3.5.2
3.5.2-next
3.5.3
3.5.3-next
3.5.4
3.5.4-next
3.5.5
3.5.5-next
3.5.6
3.5.6-next
3.5.7
3.5.7-next
3.5.8
3.5.8-next
3.5.9
3.5.9-next