GHSL-2024-019_GHSL-2024-024: Multiple command injections and path injections in Kohya_ss - CVE-2024-32022, CVE-2024-32026, CVE-2024-32025, CVE-2024-32027, CVE-2024-32024, CVE-2024-32023
Kohya_ss v22.6.1 contains multiple command injection and path injection vulnerabilities in its Gradio-based GUI. An attacker could execute arbitrary commands on the server (on POSIX systems) or perform limited file writes, potentially compromising the system.
Originally disclosed on GitHub Security Lab
Kohyass v22.6.1 is vulnerable to multiple command injections and path injections.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
These issues may lead to arbitrary command injection on the server (on POSIX systems) and limited file write, potentially allowing an attacker to execute commands or modify files.
What the attacker needed
Access to the Gradio interface; POSIX system for command injection
The fix
The maintainer created fixes for the issues, and advisories were published.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes security holes in a tool called Kohya_ss, which is used for training AI models. The tool has a web interface where users can enter text, and some of that text is passed directly to system commands without proper checking. This means a malicious user could trick the tool into running harmful commands on the computer, like deleting files or installing malware.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.