CVE-2026-38974

dulwich: Dulwich: Missing SSH host key verification allows potential impersonation

Published Jul 15, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Dulwich through 1.1.0 was found to be missing SSH host key verification in contrib/paramiko_vendor.py.

Analysis

AI-generated

Technical impact

The vulnerability exists in the Dulwich library version 1.1.0, where the SSH host key verification step is omitted in the contrib/paramiko_vendor.py module. This omission means that any SSH connection initiated by Dulwich will accept the server key without confirmation, thereby allowing a malicious actor to perform a man‑in‑the‑middle attack on the SSH session. The impact is a loss of confidentiality and integrity for data transmitted over the SSH channel, and a loss of authentication assurance for the client.

Affected Systems

Affected systems are installations that use the Dulwich Python library, particularly version 1.1.0. Any projects, services, or scripts that rely on Dulwich for SSH communication will be exposed, regardless of the operating system or deployment environment.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity vulnerability, while the EPSS score of less than 1% implies a very low probability of currently observed exploitation. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote over SSH; the attacker would need to establish an SSH session to the target and could subvert it by presenting a rogue host key. No special privileges are required on the client side, but successful exploitation requires the client to connect to a target server over SSH that the attacker can control or intercept.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dulwich to a version where SSH host key verification is enabled.
  • Configure SSH clients used by Dulwich to enforce strict host key checking, or provide a populated known_hosts file.
  • Verify that any custom SSH backend implements proper host key validation and does not rely solely on the default implementation.

Generated by OpenCVE AI on July 31, 2026 at 04:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title dulwich: Dulwich: Missing SSH host key verification allows potential impersonation
Weaknesses CWE-322
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-295
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Jelmer
Jelmer dulwich
Vendors & Products Jelmer
Jelmer dulwich
Type Values Removed Values Added
Description Dulwich through 1.1.0 was found to be missing SSH host key verification in contrib/paramiko_vendor.py.
References
Weaknesses
  • CWE-295

    Improper Certificate Validation

  • CWE-322

    Key Exchange without Entity Authentication

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 16, 2026, 6:26 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
Jul 15, 2026, 10:16 PM
Modified
Jul 16, 2026, 7:16 PM
Severity
Important
Public date
Jul 15, 2026, 12:00 AM