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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-16T14:42:20.969Z
- Modified: 2026-06-17T07:29:08.497Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bmaltais kohya_ss: >= 22.6.1, < 23.1.5; from 22.6.1 before 23.1.5; from 22.6.1 before 24.0.1

## References

- <https://securitylab.github.com/advisories/GHSL-2024-019_GHSL-2024-024_kohya_ss> (exploit, third-party-advisory)
- <https://github.com/bmaltais/kohya_ss/security/advisories/GHSA-h9fp-j58h-wwrc> (third-party-advisory)
- <https://github.com/bmaltais/kohya_ss/commit/25bb1303fff21cb5bae17236d53504e85c1866df> (patch)

## Sources

- CVE List: [CVE-2024-32024](https://www.cve.org/CVERecord?id=CVE-2024-32024), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-32024](https://nvd.nist.gov/vuln/detail/CVE-2024-32024), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32024 · Whole record: https://cve.day/CVE-2024-32024.json · Rebuilt by cve.day 2026-11-25T22:58:39.251Z
