All reports
High

dulwich: dulwich: Arbitrary code execution via symlink following during file checkout

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-114096

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-23

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.

A flaw was found in Dulwich. When checking out specific file paths, the application improperly follows symbolic links when creating or restoring files. By tricking a user into checking out files from a maliciously crafted repository, an attacker can write arbitrary files to the local filesystem, which can lead to arbitrary code execution.