← Back to search

CVE-2026-114096

7.8 HIGHpublic exploit available

Published 2026-10-21 · Updated 2026-10-21

AI risk analysis

Summary
The porcelain.checkout() function in Dulwich before 1.2.8 follows symlinks when writing files to the working tree due to missing O_NOFOLLOW, allowing an attacker to write arbitrary files—including malicious Git hooks—by crafting a repository with a symlink pointing to a target location like .git/hooks/post-checkout.
Exploitability
Exploitation requires the attacker to control the repository content and trick a user into performing a checkout operation on a malicious repository, making it dependent on user interaction and specific repository structure.
Blast radius
Successful exploitation leads to local code execution via Git hooks, granting full compromise of the affected system with the privileges of the user running the checkout.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to Dulwich version 1.2.8 or later, which fixes the symlink following vulnerability by using O_NOFOLLOW when opening files during checkout.
symlink-followingarbitrary-file-writegit-hooksrcelocal

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

Dulwich from 0.24.0 before 1.2.8 contains a symlink following vulnerability in porcelain.checkout(paths=[...]) that allows attackers to write arbitrary files by abusing raw os.open without O_NOFOLLOW. Attackers can craft a repository where a worktree symlink points to .git/hooks/post-checkout, so restoring the file from a tag writes a malicious hook for code execution.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-59

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.