Path Traversal in Zope (CVE-2021-32674)
Summary
path traversal in Zope (CVE-2021-32674). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `5.2.1` or later.
AI summary snake-internal / snake-material-v2
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'Zope' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `Zope` を grep し、稼働しているサービス・バージョンを把握する。
-
5Apply temporary workaround mitigate
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 mechanパッチが適用されるまでの応急処置として、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 mechan を実施。回避策の副作用 (機能低下) を確認した上で。
-
6Apply patch patch
Upgrade Zope to 5.2.1ステージング環境で 5.2.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
References
- web https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6
- web https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36
- web https://nvd.nist.gov/vuln/detail/CVE-2021-32674
- web https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21
- web https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-104.yaml
- web https://pypi.org/project/Zope
- web https://github.com/advisories/GHSA-5vq5-pg3r-9ph3
- web https://github.com/advisories/GHSA-rpcg-f9q6-2mq6