Arbitrary File Write via Archive Extraction Affecting aim package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AIM-7444639
  • published12 Jul 2024
  • disclosed12 Jul 2024
  • creditpatrik-ha

Introduced: 12 Jul 2024

CVE-2024-6396  (opens in a new tab)
CWE-29  (opens in a new tab)

How to fix?

There is no fixed version for aim.

Overview

aim is a super-easy way to record, search and compare AI experiments.

Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction through the manipulation of file paths. An attacker could remotely overwrite any file on the host server and to exfiltrate any data from the host server. This can be abused to cause denial of service by overwriting critical system files, loss of private data, and remote code execution by downloading private ssh-keys.

Note:

Having full control over these zip files leads to two vulnerabilities:

The first is being able to overwrite any existing file on the system(e.g. the contents of the file is not "useful" to the attacker, but it can nevertheless be used to cause denial of service by overwriting critical system files).

The second vulnerability is achieved by using the built-in sshfs-client of the project to mount an external directory, and write the zip file to that. This is an intended feature of the project, being a way of getting files off of the vulnerable system.

CVSS Scores

version 4.0
version 3.1