CVE-2023-30613: Kiwitcms Unrestricted File Upload Vulnerability
HIGHCVE-2023-30613 is a HIGH (CVSS 7.7) unrestricted file upload vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Kiwitcms libraries in the PyPI ecosystem. The issue involves unrestricted file upload in kiwi tcms. Remediation is available by upgrading affected packages to version 12.2.
CVE-2023-30613 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2023-30613
To remediate this vulnerability, upgrade all affected Kiwitcms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install kiwitcms>=12.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show kiwitcms
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-30613, inspect your installed packages using pip:
pip show kiwitcms
Analyze the terminal output to locate any version of Kiwitcms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.2), your application is affected.
Note: The pip show kiwitcms command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Kiwitcms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-30613 Affected Kiwitcms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kiwitcms
|
PyPI |
< 12.2
|
12.2
|
References
Frequently Asked Questions
What is CVE-2023-30613?
Which Kiwitcms versions are affected?
What version fixes CVE-2023-30613?
Is kiwitcms affected?
What is the CVSS score of CVE-2023-30613?
What CWE is associated with CVE-2023-30613?
How can I check PyPI dependencies for CVE-2023-30613?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fwcf-753v-fgcj",
"modified" : "2025-04-11T23:44:47Z",
"published" : "2023-04-24T22:44:12Z",
"aliases" : [ "CVE-2023-30613" ],
"summary" : "Unrestricted file upload in kiwi TCMS",
"details" : "### Impact\nKiwi TCMS allows users to upload attachments to test plans, test cases, etc. In earlier versions there is no control over what kinds of files can be uploaded. Thus a malicious actor may upload an `.exe` file or a file containing embedded JavaScript and trick others into clicking on these files causing vulnerable browsers to execute malicious code on another computer or attempting XSS attacks.\n\nStored XSS attacks via file uploads have been fixed in earlier versions of Kiwi TCMS, see [GHSA-2wcr-87wf-cf9j](https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2wcr-87wf-cf9j). This advisory deals with prohibiting users to upload potentially compromised files in the first place.\n\n\n### Patches\nKiwi TCMS v12.2 comes with functionality that allows administrators to configure additional upload validator functions which give them more control over what file types are accepted for upload. By default `.exe` are denied. Other files containing the `<script>` tag, regardless of their type are also denied b/c they are a path to XSS attacks.\n\n\n\n### Workarounds\nUpgrade to version 12.2 or later.\n\n### References\nOriginally reported by [Ahmed Rabeaa Mosaa](https://huntr.dev/bounties/c30d3503-600d-4d00-9571-98826a51f12c).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "kiwitcms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-fwcf-753v-fgcj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30613"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kiwitcms/Kiwi"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/c30d3503-600d-4d00-9571-98826a51f12c"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/c30d3503-600d-4d00-9571-98826a51f12c"
}, {
"type" : "WEB",
"url" : "https://kiwitcms.org/blog/kiwi-tcms-team/2023/04/23/kiwi-tcms-122"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-24T22:44:12Z",
"nvd_published_at" : "2023-04-24T17:15:10Z"
}
}