CVE-2024-6396 Arbitrary File Overwrite and Data Exfiltration in aimhubio/aim

Critical 9.8 Published Updated

Remote attackers can overwrite arbitrary files and exfiltrate data via path traversal in the backup function, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-6396?

CVE-2024-6396 is a critical path traversal vulnerability in aimhubio/aim, published on 12 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability in the `_backup_run` function in aimhubio/aim version 3.19.3 allows remote attackers to overwrite any file on the host server and exfiltrate arbitrary data. The vulnerability arises due to improper handling of the `run_hash` and `repo.path` parameters, which can be manipulated to create and write to arbitrary file paths. This can lead to denial of service by overwriting critical system files, loss of private data, and potential remote code execution.

Weakness: CWE-29

Which versions are affected by CVE-2024-6396?

It affects 1 product.

Products include Aimstack Aim.

How do I fix CVE-2024-6396?

No fix has been published for CVE-2024-6396 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-6396 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6396 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-w9pm-mp9p-gpgc.

Is CVE-2024-6396 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free