CVE-2023-44389: Zope Zope Management Interface Vulnerable To Vulnerability

LOW
Advisory Identifier: GHSA-m755-gxxg-r5qh
CVSS 3.1
CWE-79
Published
Advisory Summary

CVE-2023-44389 is a LOW (CVSS 3.1) zope management interface vulnerable to vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Zope libraries in the PyPI ecosystem. The issue involves zope management interface vulnerable to stored cross site scripting via the title property. Remediation is available by upgrading affected packages to version 4.8.11, 5.8.6.

CVE-2023-44389 at a Glance

CVE Identifier CVE-2023-44389
GHSA Identifier GHSA-m755-gxxg-r5qh
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Zope
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.1

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

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

How to Fix CVE-2023-44389

To remediate this vulnerability, upgrade all affected Zope dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Zope fixed: 4.8.11
pip install Zope>=4.8.11
Zope fixed: 5.8.6
pip install Zope>=5.8.6
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 Zope

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-44389, inspect your installed packages using pip:

pip show Zope

Analyze the terminal output to locate any version of Zope in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.11), your application is affected.

Note: The pip show Zope command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Zope, 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 The title property, available on most Zope objects, can be used to store script code that is executed while viewing the affected object in the Zope Management Interface (ZMI) because the title property is displayed unquoted in the breadcrumbs element. All versions of Zope 4 and Zope 5 are affected. ### Patches Patches will be released with Zope versions 4.8.11 and 5.8.6. ### Workarounds Make sure only Manager users can edit and view Zope objects in the Zope Management Interface. This is the default.

CVE-2023-44389 Affected Zope Versions

2 component(s)
Fixed Versions:
4.8.115.8.6
Product / Package Ecosystem Affected Versions Fixed Version
Zope
PyPI
≥ 4.0.0
< 4.8.11
4.8.11
Zope
PyPI
≥ 5.0.0
< 5.8.6
5.8.6

References

Frequently Asked Questions

What is CVE-2023-44389?
CVE-2023-44389 is a security vulnerability in Zope involving Zope management interface vulnerable to stored cross site scripting via the title property under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Zope versions are affected?
Affected versions include releases prior to 4.8.11, 5.8.6 across affected packages: Zope.
What version fixes CVE-2023-44389?
Upgrading to 4.8.11, 5.8.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Zope affected?
Yes, Zope is affected in releases prior to 4.8.11, 5.8.6. Upgrade your dependency to 4.8.11, 5.8.6 or later.
What is the CVSS score of CVE-2023-44389?
CVE-2023-44389 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-44389?
CVE-2023-44389 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2023-44389?
Run the dependency tree command: 'pip show Zope'. 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-m755-gxxg-r5qh",
  "modified" : "2024-11-19T19:15:48Z",
  "published" : "2023-10-04T18:50:25Z",
  "aliases" : [ "CVE-2023-44389" ],
  "summary" : "Zope management interface vulnerable to stored cross site scripting via the title property",
  "details" : "### Impact\nThe title property, available on most Zope objects, can be used to store script code that is executed while viewing the affected object in the Zope Management Interface (ZMI) because the title property is displayed unquoted in the breadcrumbs element. All versions of Zope 4 and Zope 5 are affected. \n\n### Patches\nPatches will be released with Zope versions 4.8.11 and 5.8.6.\n\n### Workarounds\nMake sure only Manager users can edit and view Zope objects in the Zope Management Interface. This is the default.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Zope"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.8.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Zope"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.8.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Zope/security/advisories/GHSA-m755-gxxg-r5qh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-44389"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Zope/commit/21dfa78609ffd8b6bd8143805678ebbacae5141a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Zope/commit/aeaf2cdc80dff60815e3706af448f086ddc3b98d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2023-193.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zopefoundation/Zope"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-04T18:50:25Z",
    "nvd_published_at" : "2023-10-04T21:15:10Z"
  }
}