CVE-2024-32024 Kohya_ss vulenrable to path injection in `common_gui.py` `add_pre_postfix` function (`GHSL-2024-023`)

Medium 6.5 Published Updated

Attackers can exploit path injection in Kohya_ss to read or modify arbitrary files on the host system.

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-32024?

CVE-2024-32024 is a medium-severity path traversal vulnerability in bmaltais kohya_ss, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Kohya_ss is a GUI for Kohya's Stable Diffusion trainers. Kohya_ss is vulnerable to a path injection in the `common_gui.py` `add_pre_postfix` function. This vulnerability is fixed in 23.1.5.

Weakness: CWE-22

Which versions are affected by CVE-2024-32024?

It affects 1 product.

Products include Bmaltais Kohya Ss.

How do I fix CVE-2024-32024?

No fix has been published for CVE-2024-32024 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-32024 being exploited?

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

Sources

Also known as GHSA-h9fp-j58h-wwrc.

Is CVE-2024-32024 in your software?

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

Check your SBOMs for free