CVE-2023-25156: Kiwitcms Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-7968-h4m4-ghm9
CVSS 7.5
CWE-307
Published
Advisory Summary

CVE-2023-25156 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Kiwitcms libraries in the PyPI ecosystem. The issue involves no protection against brute-force attacks on login page. Remediation is available by upgrading affected packages to version 12.0.

CVE-2023-25156 at a Glance

CVE Identifier CVE-2023-25156
GHSA Identifier GHSA-7968-h4m4-ghm9
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Kiwitcms
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-25156

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.

kiwitcms fixed: 12.0
pip install kiwitcms>=12.0
Verify Direct and Transitive Dependencies

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-25156, 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.0), 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-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. 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

### Impact Previous versions of Kiwi TCMS do not impose rate limits which makes it easier to attempt brute-force attacks against the login page. ### Patches Users should upgrade to v12.0 or later. ### Workarounds Users may install and configure a rate-limiting proxy in front of Kiwi TCMS. For example nginx. ### References [Disclosed by spyata](https://huntr.dev/bounties/2b1a9be9-45e9-490b-8de0-26a492e79795/)

CVE-2023-25156 Affected Kiwitcms Versions

1 component(s)
Fixed Versions:
12.0
Product / Package Ecosystem Affected Versions Fixed Version
kiwitcms
PyPI
< 12.0
12.0

References

Frequently Asked Questions

What is CVE-2023-25156?
CVE-2023-25156 is a security vulnerability in Kiwitcms involving No protection against brute-force attacks on login page under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Kiwitcms versions are affected?
Affected versions include releases prior to 12.0 across affected packages: kiwitcms.
What version fixes CVE-2023-25156?
Upgrading to 12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kiwitcms affected?
Yes, kiwitcms is affected in releases prior to 12.0. Upgrade your dependency to 12.0 or later.
What is the CVSS score of CVE-2023-25156?
CVE-2023-25156 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-25156?
CVE-2023-25156 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check PyPI dependencies for CVE-2023-25156?
Run the dependency tree command: 'pip show kiwitcms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7968-h4m4-ghm9",
  "modified" : "2023-02-15T18:11:23Z",
  "published" : "2023-02-15T18:10:54Z",
  "aliases" : [ "CVE-2023-25156" ],
  "summary" : "No protection against brute-force attacks on login page",
  "details" : "### Impact\nPrevious versions of Kiwi TCMS do not impose rate limits which makes it easier to attempt brute-force attacks against the login page.\n\n### Patches\nUsers should upgrade to v12.0 or later.\n\n### Workarounds\nUsers may install and configure a rate-limiting proxy in front of Kiwi TCMS. For example nginx.\n\n### References\n[Disclosed by spyata](https://huntr.dev/bounties/2b1a9be9-45e9-490b-8de0-26a492e79795/)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "kiwitcms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-7968-h4m4-ghm9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25156"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kiwitcms/Kiwi/commit/0ed213fa0ddb7a6dc77e3c3b99e8fc90ccdaf46f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kiwitcms/Kiwi"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/2b1a9be9-45e9-490b-8de0-26a492e79795"
  }, {
    "type" : "WEB",
    "url" : "https://kiwitcms.org/blog/kiwi-tcms-team/2023/02/15/kiwi-tcms-120"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-307" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-15T18:10:54Z",
    "nvd_published_at" : "2023-02-15T15:15:00Z"
  }
}