Dulwich's porcelain.checkout(paths=[...]) function uses raw os.open calls that follow symlinks, bypassing symlink protections and allowing arbitrary file writes. An attacker can craft a malicious repository with symlinks that cause checkout to overwrite files such as .git/hooks/post-checkout, enabling remote code execution on subsequent git operations. The vulnerability affects Poetry versions from 2.2.0 up to but not including 2.4.2. A patch is available to fix this issue by replacing the raw os.open usage with a safer method that detects symlinks.