Skip to main content
CVE-2026-52726VulnerabilityPublished Updated

Poetry: Dulwich's submodule path traversal

Affects poetrySource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-52726· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 2.4.1_3 soon.

Data as of 30 Oct 2026, 08:16 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.4.1_3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade poetry to 2.4.1_3.

Affected software

ProductAffectedFixed in
Homebrewpoetrypkg:brew/poetryOther threatsAffected
  • >=2.2.0 <2.4.1_3
Fixed in
  • 2.4.1_3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in dulwich version 1.2.5 and later. Users should upgrade to version 1.2.5 or newer to remediate this vulnerability. Until upgraded, avoid cloning or updating submodules with recurse_submodules=True from untrusted repositories. The vendor advisory confirms the availability of an official fix.

Description

Dulwich versions from 0.23.2 up to but not including 1.2.5 contain a path traversal vulnerability in the submodule update and clone functions when recurse_submodules is enabled. An attacker can craft a malicious upstream repository with a .gitmodules file and a matching gitlink entry that specifies a submodule path inside the parent repository's .git directory, such as .git/hooks. This causes the attacker's submodule contents to be written directly into the victim's .git/hooks directory with executable permissions, leading to arbitrary code execution when git hooks are triggered.

References

Community reviews

Loading reviews…