← Back
CVE-2026-42305
high
CVSS 8.8
Path Traversal in dulwich (CVE-2026-42305)
Summary
path traversal in dulwich (CVE-2026-42305). Successful exploitation can lead to full system takeover. Mitigation: upgrade to `1.2.5` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2026-42305** has been found in dulwich.
Successful exploitation can lead to full system takeover. CVSS score: 8.8/10.
What to do: upgrade dulwich to **1.2.5** or later.
If unsure, ask your IT team or search "dulwich CVE-2026-42305" on the vendor's site.
CVE-2026-42305 (dulwich) — CWE-22 / CVSS v3 8.8
Attack vector: remote (network-reachable) / unauthenticated
Patched: `1.2.5` — apply immediately
Workaround: There is no effective pre-patch workaround.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**Path traversal** (CWE-22) exists in dulwich.
📍 Affected scope
dulwich — .
🔥 Severity
Severity: High (CVSS 8.8/10). Successful exploitation can lead to full system takeover
🔧 How to fix
Update to **1.2.5**.
🛡️ Workaround
Workaround: There is no effective pre-patch workaround.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'dulwich' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'dulwich' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `dulwich` を grep し、稼働しているサービス・バージョンを把握する。
-
5Apply temporary workaround mitigate
There is no effective pre-patch workaround.パッチが適用されるまでの応急処置として、There is no effective pre-patch workaround. を実施。回避策の副作用 (機能低下) を確認した上で。
-
6Apply patch patch
Upgrade dulwich to 1.2.5ステージング環境で 1.2.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
pip
dulwich
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5"}]}]
PyPI
dulwich
[{"type":"ECOSYSTEM","events":[{"introduced":"0.10.0"},{"fixed":"1.2.5"}]}]
References
- advisory https://nvd.nist.gov/vuln/detail/CVE-2026-42305
- package https://github.com/jelmer/dulwich
- web https://github.com/jelmer/dulwich/security/advisories/GHSA-897w-fcg9-f6xj
- web https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5
- web https://github.com/advisories/GHSA-897w-fcg9-f6xj
- web https://github.com/jelmer/dulwich/commit/49eb56e51aad637fc23d54bf2a08cb42739b8290
- web https://github.com/jelmer/dulwich/commit/57efc4aa1581e038915a0fd79365be53b150f4a9