PT-2023-29855 · Sbt+1 · Sbt+1

Xuwei-K

·

Published

2023-10-23

·

Updated

2024-11-15

·

CVE-2023-46122

CVSS v3.1

3.9

Low

VectorAV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions sbt versions prior to 1.9.7
Description The issue allows writing of arbitrary files given a specially crafted zip or JAR file, utilizing IO.unzip. This could potentially overwrite /root/.ssh/authorized keys. Within sbt's main code, IO.unzip is used in the pullRemoteCache task and Resolvers.remote. Many projects also use IO.unzip(...) directly for custom tasks.
Recommendations For versions prior to 1.9.7, update to version 1.9.7 to resolve the issue. As a temporary workaround, consider using an alternative library to unzip files until the update can be applied. Restrict access to the IO.unzip function to minimize the risk of exploitation. Avoid using IO.unzip directly in custom tasks until the issue is resolved.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2023-46122
GHSA-H9MW-GRGX-2FHF
OESA-2024-2422
OPENSUSE-SU-2023_4527-1
SUSE-SU-2023:4527-1
SUSE-SU-2023_4527-1

Affected Products

Suse
Sbt