# CVE-2024-32023: Kohya_ss vulnerable to path injection in `common_gui.py` `find_and_replace` function (`GHSL-2024-024`)

- 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.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-16T14:39:21.366Z
- Modified: 2026-06-17T07:29:08.380Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, 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` `find_and_replace` 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

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## 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-p945-7qm7-7j53> (third-party-advisory)
- <https://github.com/bmaltais/kohya_ss/commit/8bc67a7467f8366db1a4b9b3b14525ec763f1650> (patch)

## Sources

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

---

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