p PatchFirst

CVE-2026-122299

CVE-2026-122299 · Dulwich before 1.2.20 Commit Parser Tree Header Misinterpretation

CVSS 8.6 · High · EPSS 0.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="dulwich"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Dulwich before 1.2.20 contains a commit object parsing vulnerability where the read path in _parse_commit resolves a duplicate tree header to the last occurrence instead of the first, diverging from core git's resolution behavior, while Poetry 2.5.1 ships this version and uses dulwich by default for git dependency installation. Attackers can craft a commit object with two tree headers so that reviewers and CI using git see a benign tree while Poetry's dulwich-based checkout resolves to a different attacker-controlled tree containing malicious build scripts such as setup.py, resulting in unreviewed code execution on the install or build host.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • dulwich

    Versions
    • ≥ 0, < 1.2.20: Affected (semver)

    Update to 1.2.20

  • dulwich Debian 12

    Versions
    • 0.21.2-1
    • 0.21.5-1
    • 0.21.6-1
    • 0.22.5-1
    • 0.22.7-1
    • 0.22.7-2
    All versions (22)
    • 0.24.10-1
    • 0.24.2-1
    • 0.24.2-2
    • 1.0.0-1
    • 1.0.0-2
    • 1.1.0-1
    • 1.1.0-2
    • 1.1.0-3
    • 1.2.0-1
    • 1.2.1-1
    • 1.2.11-1
    • 1.2.12-1
    • 1.2.17-1
    • 1.2.5-1
    • 1.2.7-1
    • 1.2.7-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Debian 13

    Versions
    • 0.22.7-1
    • 0.22.7-2
    • 0.24.10-1
    • 0.24.2-1
    • 0.24.2-2
    • 1.0.0-1
    All versions (18)
    • 1.0.0-2
    • 1.1.0-1
    • 1.1.0-2
    • 1.1.0-3
    • 1.2.0-1
    • 1.2.1-1
    • 1.2.11-1
    • 1.2.12-1
    • 1.2.17-1
    • 1.2.5-1
    • 1.2.7-1
    • 1.2.7-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Debian 14

    Versions
    • 0.22.7-1
    • 0.22.7-2
    • 0.24.10-1
    • 0.24.2-1
    • 0.24.2-2
    • 1.0.0-1
    All versions (18)
    • 1.0.0-2
    • 1.1.0-1
    • 1.1.0-2
    • 1.1.0-3
    • 1.2.0-1
    • 1.2.1-1
    • 1.2.11-1
    • 1.2.12-1
    • 1.2.17-1
    • 1.2.5-1
    • 1.2.7-1
    • 1.2.7-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 16.04 LTS

    Versions
    • 0.11.2-1ubuntu1
    • 0.12.0-1
    • 0.12.0-1build1
    • 0.12.0-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 18.04 LTS

    Versions
    • 0.18.2-1build1
    • 0.18.5-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 20.04 LTS

    Versions
    • 0.19.11-2
    • 0.19.14-4ubuntu1
    • 0.19.15-1
    • 0.19.15-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 22.04 LTS

    Versions
    • 0.20.15-1ubuntu1
    • 0.20.31-1ubuntu1
    • 0.20.31-1.1
    • 0.20.31-1.1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 24.04 LTS

    Versions
    • 0.21.6-1
    • 0.21.6-1build1
    • 0.21.6-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 26.10

    Versions
    • 1.1.0-3
    • 1.2.12-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • dulwich Ubuntu 26.04 LTS

    Versions
    • 0.22.7-1
    • 0.24.2-2
    • 1.1.0-2ubuntu1
    • 1.1.0-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →