{"id":"CVE-2023-30628","published":"2023-04-24T21:17:32Z","modified":"2025-02-12T16:35:13Z","title":"Kiwi TCMS has command injection vulnerability in changelog.yml CI workflow","vendor":"kiwitcms","product":"Kiwi","tier":"tail","description":{"text":"Kiwi TCMS is an open source test management system. In kiwitcms/Kiwi v12.2 and prior and kiwitcms/enterprise v12.2 and prior,\nthe `changelog.yml` workflow is vulnerable to command injection attacks because of using an untrusted `github.head_ref` field. The `github.head_ref` value is an attacker-controlled value. Assigning the value to `zzz\";echo${IFS}\"hello\";#` can lead to command injection. Since the permission is not restricted, the attacker has a write-access to the repository. Commit 834c86dfd1b2492ccad7ebbfd6304bfec895fed2 of the kiwitcms/Kiwi repository and commit e39f7e156fdaf6fec09a15ea6f4e8fec8cdbf751 of the kiwitcms/enterprise repository contain a fix for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03596,"percentile":0.89721,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-cw6r-6ccx-5hwx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kiwitcms/Kiwi/commit/834c86dfd1b2492ccad7ebbfd6304bfec895fed2","tags":["x_refsource_MISC"]},{"url":"https://github.com/kiwitcms/enterprise/commit/e39f7e156fdaf6fec09a15ea6f4e8fec8cdbf751","tags":["x_refsource_MISC"]},{"url":"https://github.com/kiwitcms/Kiwi/blob/37bfb87696093ce0393160e2725949185cc0651d/.github/workflows/changelog.yml#L18","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input/","tags":["x_refsource_MISC"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":17.94},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"kiwitcms","affectedVersions":[{"vendor":"kiwitcms","product":"Kiwi","versions":["<= 12.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-02-03T20:56:03.570693Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"kiwitcms","vulnerableRanges":["<12.3"],"patched":["12.3"],"from":["PYSEC-2023-273"],"provenance":"source"}],"summary":{"text":"Kiwi TCMS (the kiwitcms/Kiwi and kiwitcms/enterprise products, v12.2 and prior) has an OS command injection flaw in its changelog.yml CI workflow, which builds commands from the untrusted github.head_ref value. An attacker who holds write access to the repository, which the unrestricted permissions allow, can craft a branch name that executes arbitrary shell commands when the workflow runs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:01Z"},"euvd":{"id":"EUVD-2023-0290","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-27489","published":"2023-03-29","fixed":"12.1","kev":false},{"cve":"CVE-2023-30544","published":"2023-04-24","fixed":"12.2","kev":false},{"cve":"CVE-2023-30613","published":"2023-04-24","fixed":"12.2","kev":false,"link":{"from":"CVE-2023-30613","to":"CVE-2023-30628","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:kiwitcms","fromFixed":"12.2","toFixed":"12.3","daysApart":0}]}},{"cve":"CVE-2023-30628","published":"2023-04-24","fixed":"12.3","kev":false},{"cve":"CVE-2023-32686","published":"2023-05-27","fixed":"12.3","kev":false},{"cve":"CVE-2023-33977","published":"2023-06-06","fixed":"12.4","kev":false},{"cve":"CVE-2023-36809","published":"2023-07-05","fixed":"12.5","kev":false}],"package":"PyPI:kiwitcms"}}