GHSA-5vq5-pg3r-9ph3: Duplicate Advisory Path Traversal Vulnerability
HIGHGHSA-5vq5-pg3r-9ph3 is a HIGH (CVSS 8.8) path traversal vulnerability (CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page) 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.1, 5.2.1.
GHSA-5vq5-pg3r-9ph3 at a Glance
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).
How to Fix GHSA-5vq5-pg3r-9ph3
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.
pip install Zope>=4.6.1
pip install Zope>=5.2.1
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-5vq5-pg3r-9ph3, 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.1), 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-12: ASP.NET Misconfiguration: Missing Custom Error Page, where an asp .net application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses. 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
GHSA-5vq5-pg3r-9ph3 Affected Duplicate Advisory Versions
2 component(s)References
Frequently Asked Questions
What is GHSA-5vq5-pg3r-9ph3?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-5vq5-pg3r-9ph3?
Is Zope affected?
What is the CVSS score of GHSA-5vq5-pg3r-9ph3?
What CWE is associated with GHSA-5vq5-pg3r-9ph3?
How can I check PyPI dependencies for GHSA-5vq5-pg3r-9ph3?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5vq5-pg3r-9ph3",
"modified" : "2024-11-19T18:25:36Z",
"published" : "2021-06-10T17:22:08Z",
"withdrawn" : "2024-11-19T18:25:36Z",
"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. This advisory extends the previous advisory at https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36 with additional cases of TAL expression traversal vulnerabilities. Most Python modules are not available for using in TAL expressions that you can add through-the-web, for example in Zope Page Templates. This restriction avoids file system access, for example via the 'os' module. But some of the untrusted modules are available indirectly through Python modules that are available for direct use. By default, you need to have the Manager role to add or edit Zope Page Templates through the web. Only sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk. The problem has been fixed in Zope 5.2.1 and 4.6.1. The workaround is the same as for https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36: 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.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Zope"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0"
}, {
"fixed" : "5.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36"
}, {
"type" : "WEB",
"url" : "https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32674"
}, {
"type" : "WEB",
"url" : "https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zopefoundation/Zope"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/Zope"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-12", "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-09T21:32:39Z",
"nvd_published_at" : "2021-06-08T18:15:00Z"
}
}