GHSA-962m-m8jw-8wrr: Duplicate Advisory Path Traversal Vulnerability

HIGH
CVSS 8.8
CWE-22
Published
Advisory Summary

GHSA-962m-m8jw-8wrr is a HIGH (CVSS 8.8) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves path traversal in zope. Remediation is available by upgrading affected packages to version 4.6, 5.2.

GHSA-962m-m8jw-8wrr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-962m-m8jw-8wrr
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix GHSA-962m-m8jw-8wrr

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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.6
pip install Zope>=4.6
Zope fixed: 5.2
pip install Zope>=5.2
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 GHSA-962m-m8jw-8wrr, inspect your installed packages using pip:

pip show Zope

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-5pr9-v234-jw36. This link is maintained to preserve external references. ## Original Description Zope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.

GHSA-962m-m8jw-8wrr Affected Duplicate Advisory Versions

2 component(s)
Fixed Versions:
4.65.2
Product / Package Ecosystem Affected Versions Fixed Version
Zope
PyPI
< 4.6
4.6
Zope
PyPI
≥ 5.0
< 5.2
5.2

References

Frequently Asked Questions

What is GHSA-962m-m8jw-8wrr?
GHSA-962m-m8jw-8wrr is a security vulnerability in Duplicate Advisory involving Path Traversal in Zope under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 4.6, 5.2 across affected packages: Zope.
What version fixes GHSA-962m-m8jw-8wrr?
Upgrading to 4.6, 5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Zope affected?
Yes, Zope is affected in releases prior to 4.6, 5.2. Upgrade your dependency to 4.6, 5.2 or later.
What is the CVSS score of GHSA-962m-m8jw-8wrr?
GHSA-962m-m8jw-8wrr has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-962m-m8jw-8wrr?
GHSA-962m-m8jw-8wrr is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for GHSA-962m-m8jw-8wrr?
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-962m-m8jw-8wrr",
  "modified" : "2024-11-19T18:25:12Z",
  "published" : "2021-06-15T16:10:49Z",
  "withdrawn" : "2024-11-19T18:25:12Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Path Traversal in Zope",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-5pr9-v234-jw36. This link is maintained to preserve external references.\n\n## Original Description\nZope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Zope"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Zope"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0"
      }, {
        "fixed" : "5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32633"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91"
  }, {
    "type" : "WEB",
    "url" : "https://cyllective.com/blog/post/plone-authenticated-rce-cve-2021-32633"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zopefoundation/Zope"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2021/05/21/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2021/05/22/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-27T20:08:03Z",
    "nvd_published_at" : "2021-05-21T14:15:00Z"
  }
}