Key Exchange without Entity Authentication Affecting dulwich package, versions [,1.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DULWICH-18016337
  • published19 Jul 2026
  • disclosed15 Jul 2026
  • creditUnknown

Introduced: 15 Jul 2026

NewCVE-2026-38974  (opens in a new tab)
CWE-322  (opens in a new tab)

How to fix?

Upgrade dulwich to version 1.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Key Exchange without Entity Authentication through contrib/paramiko_vendor.py in the SSH connection path. An attacker can intercept or impersonate an SSH server and have the client connect without validating the server’s host key by supplying a malicious host during a Git-over-SSH operation. This allows man-in-the-middle attacks against SSH-based Git access, exposing repository data and credentials in transit and letting the attacker tamper with fetched or pushed content.

Notes

  • Affected SSH sessions also honor GlobalKnownHostsFile and UserKnownHostsFile entries from the local SSH config when present; deployments that rely on those paths for trust material are part of the verification path.
  • The vulnerable behavior applies in the vendor’s default SSH client setup, which accepted unknown host keys instead of enforcing any known-hosts policy before client.connect(...).

CVSS Base Scores

version 4.0
version 3.1