{"answers":{"affected":"1 open source package ship an affected version, including kiwitcms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30628 exists.","fix":"Upgrade kiwitcms to 12.3 or later.","what":"CVE-2023-30628 is a high-severity command injection vulnerability in kiwitcms Kiwi, published on 24 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-30628 and fix it if it is affected.\n\nWhat it is: CVE-2023-30628 is a high-severity command injection vulnerability in kiwitcms Kiwi, published on 24 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30628 exists.\n\nAffected packages and fixed versions:\n- kiwitcms (PyPI): affected all versions; fixed in 12.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-30628/ (Markdown: https://insights.sbomify.com/CVE-2023-30628/index.md)","id":"CVE-2023-30628","markdown":"https://insights.sbomify.com/CVE-2023-30628/index.md","name":"CVE-2023-30628","record":{"aliases":["GHSA-cw6r-6ccx-5hwx","PYSEC-2023-273"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Kiwi TCMS","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands in the CI workflow via untrusted input, requiring repository write access.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kiwi_tcms","vendor":"kiwitcms"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Kiwi TCMS has command injection vulnerability in changelog.yml CI workflow","id":"CVE-2023-30628","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":1,"n_references":5,"next":{"headline":"Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value","id":"CVE-2023-30629"},"packages":[{"ecosystem":"PyPI","fixed":["12.3"],"introduced":["0"],"last_affected":[],"package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"PYSEC-2023-273"}],"prev":{"headline":"jellyfin-web has a stored cross-site scripting vulnerability in devices.js","id":"CVE-2023-30627"},"products":["Kiwi"],"published":"2023-04-24","related":[{"cvss_score":8.1,"headline":"Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox","id":"CVE-2023-36809","kev_date_added":null,"published":"2023-07-05"},{"cvss_score":8.1,"headline":"Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS","id":"CVE-2023-33977","kev_date_added":null,"published":"2023-06-06"},{"cvss_score":8.1,"headline":"kiwitcms vulnerable to stored XSS via unrestricted files upload","id":"CVE-2023-32686","kev_date_added":null,"published":"2023-05-27"},{"cvss_score":8.1,"headline":"Kiwi TCMS unrestricted file upload vulnerability","id":"CVE-2023-30613","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":7.6,"headline":"Stored cross site scripting via SVG file upload in Kiwi TCMS","id":"CVE-2023-27489","kev_date_added":null,"published":"2023-03-29"},{"cvss_score":7.5,"headline":"Kiwi TCMS has no protection against brute-force attacks on login page","id":"CVE-2023-25156","kev_date_added":null,"published":"2023-02-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["kiwitcms"]},"summary":"Attackers can execute arbitrary commands in the CI workflow via untrusted input, requiring repository write access.","url":"https://insights.sbomify.com/CVE-2023-30628/"}