# CVE-2024-32022: Kohya_ss is vulnerable to a command injection in basic_caption_gui.py (GHSL-2024-019)

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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): 3.11%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-16T14:46:29.957Z
- Modified: 2026-06-17T07:29:08.257Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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-m6jq-7j4v-2fg3> (third-party-advisory)
- <https://github.com/bmaltais/kohya_ss/commit/831af8babeb75faff62bcc6a8c6a4f80354f1ff1> (patch)

## Sources

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

---

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