CVE-2024-32022 Kohya_ss is vulnerable to a command injection in basic_caption_gui.py (GHSL-2024-019)
Attackers can execute arbitrary commands via the basic caption GUI in Kohya_ss, requiring an upgrade to the latest version.
- 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-32022?
CVE-2024-32022 is a critical command injection 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 command injection in basic_caption_gui.py. This vulnerability is fixed in 23.1.5.
Weakness: CWE-77
Which versions are affected by CVE-2024-32022?
It affects 1 product.
Products include Bmaltais Kohya Ss.
How do I fix CVE-2024-32022?
No fix has been published for CVE-2024-32022 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-32022 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32022 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in bmaltais kohya_ss
- CVE-2024-32025 Kohya_ss is vulnerable to a command injection in `group_images_gui.py` (`GHSL-2024-021`)
- CVE-2024-32026 Kohya_ss is vulnerable to a command injection in `git_caption_gui.py` (`GHSL-2024-020`)
- CVE-2024-32027 Kohya_ss is vulnerable to a command injection in `finetune_gui.py` (`GHSL-2024-022`)
- CVE-2024-32023 Kohya_ss vulnerable to path injection in `common_gui.py` `find_and_replace` function (`GHSL-2024-024`)
- CVE-2024-32024 Kohya_ss vulenrable to path injection in `common_gui.py` `add_pre_postfix` function (`GHSL-2024-023`)
Sources
Also known as GHSA-m6jq-7j4v-2fg3.