{"id":"CVE-2024-32024","published":"2024-04-16T14:42:20Z","modified":"2024-08-02T01:59:50Z","title":"Kohya_ss vulenrable to path injection in `common_gui.py` `add_pre_postfix` function (`GHSL-2024-023`)","vendor":"bmaltais","product":"kohya_ss","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00666,"percentile":0.52778,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/bmaltais/kohya_ss/security/advisories/GHSA-h9fp-j58h-wwrc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bmaltais/kohya_ss/commit/25bb1303fff21cb5bae17236d53504e85c1866df","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-019_GHSL-2024-024_kohya_ss","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":10.56},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"bmaltais","affectedVersions":[{"vendor":"bmaltais","product":"kohya_ss","versions":[">= 22.6.1, < 23.1.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-22T20:25:53.137689Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-29862","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bmaltais-kohya-ss-cve-2024-32023","parents":[{"from":"CVE-2024-32023","to":"CVE-2024-32024","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kohya_gui/common_gui.py"],"commits":["https://github.com/bmaltais/kohya_ss/commit/8bc67a7467f8366db1a4b9b3b14525ec763f1650","https://github.com/bmaltais/kohya_ss/commit/25bb1303fff21cb5bae17236d53504e85c1866df"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same product + CWE + description similarity"}]}]}}